/kernel/linux/linux-5.10/samples/bpf/ |
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()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | cma_trace.h | 30 __field(u32, tos) 37 __entry->tos = id_priv->tos; 45 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos 105 __field(u32, tos) 113 __entry->tos = id_priv->tos; 122 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos, 184 __field(u32, tos) 197 __entry->tos = id_priv->tos; 217 __entry->tos, __entry->pd_id, 233 __field(u32, tos) [all …]
|
D | cma_configfs.c | 153 u8 tos; in default_roce_tos_show() local 159 tos = cma_get_default_roce_tos(cma_dev, group->port_num); in default_roce_tos_show() 162 return sprintf(buf, "%u\n", tos); in default_roce_tos_show() 171 u8 tos; in default_roce_tos_store() local 173 ret = kstrtou8(buf, 0, &tos); in default_roce_tos_store() 181 ret = cma_set_default_roce_tos(cma_dev, group->port_num, tos); in default_roce_tos_store()
|
/kernel/linux/linux-5.10/include/net/ |
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)) argument 146 __be32 saddr, u8 tos, int oif) in ip_route_output() argument 150 .flowi4_tos = tos, in ip_route_output() 161 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() argument 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() argument 180 fl4->flowi4_tos = tos; in ip_route_output_gre() 186 u8 tos, struct net_device *dev, 189 u8 tos, struct net_device *devin); [all …]
|
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()
|
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()
|
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()
|
D | ip_tunnels.h | 52 u8 tos; /* TOS for IPv4, TC for IPv6 */ member 172 u8 tos, u8 ttl, __be32 label, in ip_tunnel_key_init() argument 181 key->tos = tos; in ip_tunnel_key_init() 243 __be32 key, __u8 tos, int oif, in ip_tunnel_init_flow() argument 250 fl4->flowi4_tos = tos; in ip_tunnel_init_flow() 382 return iph->tos; in ip_tunnel_get_dsfield() 401 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, in ip_tunnel_ecn_encap() argument 406 return INET_ECN_encapsulate(tos, inner); in ip_tunnel_ecn_encap() 420 u8 tos, u8 ttl, __be16 df, bool xnet);
|
D | dst_metadata.h | 145 __u8 tos, __u8 ttl, in __ip_tun_set_dst() argument 158 saddr, daddr, tos, ttl, in __ip_tun_set_dst() 170 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst() 176 __u8 tos, __u8 ttl, in __ipv6_tun_set_dst() argument 200 info->key.tos = tos; in __ipv6_tun_set_dst()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
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-5.10/net/xfrm/ |
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/net/ipv4/ |
D | fib_rules.c | 38 u8 tos; member 52 if (r->dst_len || r->src_len || r->tos) in fib4_rule_matchall() 188 if (r->tos && (r->tos != fl4->flowi4_tos)) in fib4_rule_match() 233 if (frh->tos & ~IPTOS_TOS_MASK) { in fib4_rule_configure() 278 rule4->tos = frh->tos; in fib4_rule_configure() 321 if (frh->tos && (rule4->tos != frh->tos)) in fib4_rule_compare() 345 frh->tos = rule4->tos; in fib4_rule_fill()
|
D | ip_tunnel.c | 297 RT_TOS(iph->tos), tunnel->parms.link, in ip_tunnel_bind_dev() 399 &iph->saddr, iph->tos); in ip_tunnel_rcv() 554 u8 tos, ttl; in ip_md_tunnel_xmit() local 564 tos = key->tos; in ip_md_tunnel_xmit() 565 if (tos == 1) { in ip_md_tunnel_xmit() 567 tos = inner_iph->tos; in ip_md_tunnel_xmit() 569 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit() 572 tunnel_id_to_key32(key->tun_id), RT_TOS(tos), in ip_md_tunnel_xmit() 604 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_md_tunnel_xmit() 623 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit() [all …]
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | ip.h | 24 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument 31 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) argument 96 __u8 tos; member
|
D | rds.h | 160 __u8 tos; member 183 __u8 tos; member 194 __u8 tos; member 227 __u8 tos; member 254 __u8 tos; member 270 __u8 tos; member
|
D | in_route.h | 31 #define RT_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | ip.h | 11 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument 17 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) argument 71 __u8 tos; member
|
D | in_route.h | 26 #define RT_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | ip.h | 24 #define IPTOS_TOS(tos) ((tos) & IPTOS_TOS_MASK) argument 30 #define IPTOS_PREC(tos) ((tos) & IPTOS_PREC_MASK) argument 82 __u8 tos; member
|
D | rds.h | 89 __u8 tos; member 109 __u8 tos; member 119 __u8 tos; member 149 __u8 tos; member 173 __u8 tos; member 187 __u8 tos; member
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
D | ipt_ECN.c | 30 if ((iph->tos & IPT_ECN_IP_MASK) != (einfo->ip_ect & IPT_ECN_IP_MASK)) { in set_ect_ip() 35 oldtos = iph->tos; in set_ect_ip() 36 iph->tos &= ~IPT_ECN_IP_MASK; in set_ect_ip() 37 iph->tos |= (einfo->ip_ect & IPT_ECN_IP_MASK); in set_ect_ip() 38 csum_replace2(&iph->check, htons(oldtos), htons(iph->tos)); in set_ect_ip()
|
D | iptable_mangle.c | 44 u_int8_t tos; in ipt_mangle_out() local 54 tos = iph->tos; in ipt_mangle_out() 64 iph->tos != tos) { in ipt_mangle_out()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
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-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | vxlan.sh | 67 ttl 20 tos inherit local 198.51.100.1 dstport 4789 84 ttl 20 tos inherit local 198.51.100.1 dstport 4789 101 ttl 20 tos inherit local 198.51.100.1 dstport 4789 119 ttl 20 tos inherit local 198.51.100.1 dstport 4789 \ 138 ttl 20 tos inherit dstport 4789 155 ttl 20 tos inherit local 2001:db8::1 dstport 4789 172 ttl 20 tos inherit local 198.51.100.1 dstport 4789 190 ttl 20 tos inherit local 198.51.100.1 dstport 4789 dev dummy1 208 ttl 20 tos inherit local 198.51.100.1 dstport 4789 \ 226 ttl 20 tos 20 local 198.51.100.1 dstport 4789 [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nft_chain_route.c | 26 u8 tos; in nf_route_table_hook4() local 35 tos = iph->tos; in nf_route_table_hook4() 44 iph->tos != tos) { in nf_route_table_hook4()
|