/third_party/lwip/src/include/lwip/ |
H A D | ip.h | 95 u8_t tos; \ 111 u8_t tos; \ 255 #define ip_output(p, src, dest, ttl, tos, proto) \ 257 ip6_output(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto) : \ 258 ip4_output(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto)) 263 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ 265 ip6_output_if(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ 266 ip4_output_if(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, netif)) 271 #define ip_output_if_src(p, src, dest, ttl, tos, proto, netif) \ 273 ip6_output_if_src(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, prot [all...] |
H A D | ip4.h | 81 u8_t ttl, u8_t tos, u8_t proto); 83 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif); 85 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif); 88 u8_t ttl, u8_t tos, u8_t proto, struct netif_hint *netif_hint); 92 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, 95 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | tcp_tos_reflect_kern.c | 31 int tos = 0; in bpf_basertt() local 55 tos = hdr->tos; in bpf_basertt() 56 if (tos != 0) in bpf_basertt() 58 &tos, sizeof(tos)); in bpf_basertt() 61 tos = ((hdr6->priority) << 4 | in bpf_basertt() 63 if (tos) in bpf_basertt() 66 &tos, sizeof(tos)); in bpf_basertt() [all...] |
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | tcp_tos_reflect_kern.c | 31 int tos = 0; in bpf_basertt() local 55 tos = hdr->tos; in bpf_basertt() 56 if (tos != 0) in bpf_basertt() 58 &tos, sizeof(tos)); in bpf_basertt() 61 tos = ((hdr6->priority) << 4 | in bpf_basertt() 63 if (tos) in bpf_basertt() 66 &tos, sizeof(tos)); in bpf_basertt() [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/ |
H A D | ip.h | 87 u8_t tos; \ 275 #define ip_output(p, src, dest, ttl, tos, proto, pcb) \ 277 ip6_output(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, pcb) : \ 278 ip4_output(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, pcb)) 284 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \ 286 ip6_output_if(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ 287 ip4_output_if(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, netif)) 292 #define ip_output_if_src(p, src, dest, ttl, tos, proto, netif) \ 294 ip6_output_if_src(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \ 295 ip4_output_if_src(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, prot [all...] |
H A D | ip4.h | 88 u8_t ttl, u8_t tos, u8_t proto, struct ip_pcb *pcb); 91 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif); 93 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif); 96 u8_t ttl, u8_t tos, u8_t proto, struct netif_hint *netif_hint, struct ip_pcb *pcb); 100 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, 103 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | cma_trace.h | 30 __field(u32, tos) 37 __entry->tos = id_priv->tos; 44 TP_printk("cm.id=%u src=%pISpc dst=%pISpc tos=%u", 45 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos 105 __field(u32, tos) 113 __entry->tos = id_priv->tos; 121 TP_printk("cm.id=%u src=%pISpc dst=%pISpc tos=%u qp_num=%u", 122 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos, [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | cma_trace.h | 30 __field(u32, tos) 37 __entry->tos = id_priv->tos; 44 TP_printk("cm.id=%u src=%pISpc dst=%pISpc tos=%u", 45 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos 105 __field(u32, tos) 113 __entry->tos = id_priv->tos; 121 TP_printk("cm.id=%u src=%pISpc dst=%pISpc tos=%u qp_num=%u", 122 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos, [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | route.h | 43 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) 44 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) 146 __be32 saddr, u8 tos, int oif) in ip_route_output() 150 .flowi4_tos = tos, in ip_route_output() 161 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() 163 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, in ip_route_output_ports() 174 __be32 gre_key, __u8 tos, int oif) in ip_route_output_gre() 180 fl4->flowi4_tos = tos; in ip_route_output_gre() 186 u8 tos, struc 145 ip_route_output(struct net *net, __be32 daddr, __be32 saddr, u8 tos, int oif) ip_route_output() argument 157 ip_route_output_ports(struct net *net, struct flowi4 *fl4, struct sock *sk, __be32 daddr, __be32 saddr, __be16 dport, __be16 sport, __u8 proto, __u8 tos, int oif) ip_route_output_ports() argument 172 ip_route_output_gre(struct net *net, struct flowi4 *fl4, __be32 daddr, __be32 saddr, __be32 gre_key, __u8 tos, int oif) ip_route_output_gre() argument 198 ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, u8 tos, struct net_device *devin) ip_route_input() argument 262 rt_tos2priority(u8 tos) rt_tos2priority() argument 291 ip_route_connect_init(struct flowi4 *fl4, __be32 dst, __be32 src, u32 tos, int oif, u8 protocol, __be16 sport, __be16 dport, struct sock *sk) ip_route_connect_init() argument 306 ip_route_connect(struct flowi4 *fl4, __be32 dst, __be32 src, u32 tos, int oif, u8 protocol, __be16 sport, __be16 dport, struct sock *sk) ip_route_connect() argument [all...] |
H A D | erspan.h | 161 static inline u8 tos_to_cos(u8 tos) in tos_to_cos() argument 165 dscp = tos >> 2; in tos_to_cos() 182 u8 tos; in erspan_build_header() local 185 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header() 206 ershdr->cos = tos_to_cos(tos); in erspan_build_header() 279 u8 tos; in erspan_build_header_v2() local 281 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header_v2() 300 ershdr->cos = tos_to_cos(tos); in erspan_build_header_v2() [all...] |
H A D | inet_ecn.h | 55 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit() 62 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit() 79 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce() 99 iph->tos |= INET_ECN_CE; in IP_ECN_set_ce() 107 if ((iph->tos & INET_ECN_MASK) != INET_ECN_ECT_0) in IP_ECN_set_ect1() 113 iph->tos ^= INET_ECN_MASK; in IP_ECN_set_ect1() 119 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear() 278 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate() 287 return INET_ECN_decapsulate(skb, oiph->tos, inner); in IP_ECN_decapsulate() 297 inner = ip_hdr(skb)->tos; in IP6_ECN_decapsulate() [all...] |
H A D | dsfield.h | 18 return iph->tos; in ipv4_get_dsfield() 34 dsfield = (iph->tos & mask) | value; in ipv4_change_dsfield() 35 check += iph->tos; in ipv4_change_dsfield() 40 iph->tos = dsfield; in ipv4_change_dsfield()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | erspan.h | 164 static inline u8 tos_to_cos(u8 tos) in tos_to_cos() argument 168 dscp = tos >> 2; in tos_to_cos() 185 u8 tos; in erspan_build_header() local 188 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header() 209 ershdr->cos = tos_to_cos(tos); in erspan_build_header() 282 u8 tos; in erspan_build_header_v2() local 284 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header_v2() 303 ershdr->cos = tos_to_cos(tos); in erspan_build_header_v2() [all...] |
H A D | inet_ecn.h | 56 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit() 63 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit() 79 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce() 101 iph->tos |= INET_ECN_CE; in IP_ECN_set_ce() 107 if ((iph->tos & INET_ECN_MASK) != INET_ECN_ECT_0) in IP_ECN_set_ect1() 111 iph->tos ^= INET_ECN_MASK; in IP_ECN_set_ect1() 117 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear() 293 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate() 302 return INET_ECN_decapsulate(skb, oiph->tos, inner); in IP_ECN_decapsulate() 312 inner = ip_hdr(skb)->tos; in IP6_ECN_decapsulate() [all...] |
H A D | route.h | 40 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) 41 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) 53 return RT_TOS(inet_sk(sk)->tos); in ip_sock_rt_tos() 154 __be32 saddr, u8 tos, int oif) in ip_route_output() 158 .flowi4_tos = tos, in ip_route_output() 169 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() 171 flowi4_init_output(fl4, oif, sk ? READ_ONCE(sk->sk_mark) : 0, tos, in ip_route_output_ports() 182 __be32 gre_key, __u8 tos, int oif) in ip_route_output_gre() 188 fl4->flowi4_tos = tos; in ip_route_output_gre() 153 ip_route_output(struct net *net, __be32 daddr, __be32 saddr, u8 tos, int oif) ip_route_output() argument 165 ip_route_output_ports(struct net *net, struct flowi4 *fl4, const struct sock *sk, __be32 daddr, __be32 saddr, __be16 dport, __be16 sport, __u8 proto, __u8 tos, int oif) ip_route_output_ports() argument 180 ip_route_output_gre(struct net *net, struct flowi4 *fl4, __be32 daddr, __be32 saddr, __be32 gre_key, __u8 tos, int oif) ip_route_output_gre() argument 202 ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, u8 tos, struct net_device *devin) ip_route_input() argument 265 rt_tos2priority(u8 tos) rt_tos2priority() argument [all...] |
H A D | dsfield.h | 18 return iph->tos; in ipv4_get_dsfield() 34 dsfield = (iph->tos & mask) | value; in ipv4_change_dsfield() 35 check += iph->tos; in ipv4_change_dsfield() 40 iph->tos = dsfield; in ipv4_change_dsfield()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | socket-util.c | 166 int tos = IPTOS_LOWDELAY; in pa_make_tcp_socket_low_delay() local 168 if (setsockopt(fd, SOL_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < 0) in pa_make_tcp_socket_low_delay() 170 if (setsockopt(fd, IPPROTO_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < 0) in pa_make_tcp_socket_low_delay() 184 int tos = IPTOS_LOWDELAY; in pa_make_udp_socket_low_delay() local 186 if (setsockopt(fd, SOL_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < 0) in pa_make_udp_socket_low_delay() 188 if (setsockopt(fd, IPPROTO_IP, IP_TOS, (const void *) &tos, sizeof(tos)) < in pa_make_udp_socket_low_delay() [all...] |
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | irq_stack.h | 23 void *tos = __this_cpu_read(hardirq_stack_ptr); in __run_on_irqstack() local 26 asm_call_on_stack(tos - 8, func, NULL); in __run_on_irqstack() 34 void *tos = __this_cpu_read(hardirq_stack_ptr); in __run_sysvec_on_irqstack() local 37 asm_call_sysvec_on_stack(tos - 8, func, regs); in __run_sysvec_on_irqstack() 45 void *tos = __this_cpu_read(hardirq_stack_ptr); in __run_irq_on_irqstack() local 48 asm_call_irq_on_stack(tos - 8, func, desc); in __run_irq_on_irqstack()
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | irq_stack.h | 37 * @tos: 38 * The @tos variable holds a pointer to the top of the irq stack and 42 * Note, that (tos) is both in input and output constraints to ensure 58 * As documented already above the @tos variable is required to be in 70 * - tos: 83 register void *tos asm("r11"); \ 85 tos = ((void *)(stack)); \ 88 "movq %%rsp, (%[tos]) \n" \ 89 "movq %[tos], %%rsp \n" \ 95 : "+r" (tos), ASM_CALL_CONSTRAIN [all...] |
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_inout.h | 16 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header() 31 XFRM_MODE_SKB_CB(skb)->tos = ipv6_get_dsfield(iph); in xfrm6_extract_header() 51 ipv6_change_dsfield(iph, 0, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_beet_make_header() 63 iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_beet_make_header()
|
/kernel/linux/linux-6.6/net/xfrm/ |
H A D | xfrm_inout.h | 16 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header() 31 XFRM_MODE_SKB_CB(skb)->tos = ipv6_get_dsfield(iph); in xfrm6_extract_header() 51 ipv6_change_dsfield(iph, 0, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_beet_make_header() 63 iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_beet_make_header()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A D | sch_red.sh | 276 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 289 -a own -b $h3_mac -t tcp -q tos=0x01 & 312 -a own -b $h3_mac -t tcp -q tos=0x01 & 338 -a own -b $h3_mac -t tcp -q tos=0x01 & 342 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 350 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 412 -a own -b $h3_mac -t tcp -q tos=0x01 & 418 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 423 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | sch_red.sh | 276 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 289 -a own -b $h3_mac -t tcp -q tos=0x01 & 312 -a own -b $h3_mac -t tcp -q tos=0x01 & 338 -a own -b $h3_mac -t tcp -q tos=0x01 & 342 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 350 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 412 -a own -b $h3_mac -t tcp -q tos=0x01 & 418 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 423 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
|
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/ocelot/ |
H A D | basic_qos.sh | 157 local tos=$1; shift 165 ping_do ${if_name} $H2_IPV4 "-Q ${tos}" 176 ping_do ${if_name} $H2_IPV6 "-Q ${tos}" 225 local tos=$(dscp_cs_to_tos 4) 228 run_test "Trusted DSCP QoS classification" ${h1} 4 ${tos} 233 ${h1}.100 3 ${tos} 237 ${h1} ${port_default} ${tos}
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | ip.h | 25 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) 32 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) 97 __u8 tos; member
|