/Linux-v4.19/include/net/ |
D | route.h | 45 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) 46 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument 138 __be32 saddr, u8 tos, int oif) in ip_route_output() argument 142 .flowi4_tos = tos, in ip_route_output() 153 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() argument 155 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, in ip_route_output_ports() 166 __be32 gre_key, __u8 tos, int oif) in ip_route_output_gre() argument 172 fl4->flowi4_tos = tos; in ip_route_output_gre() 178 u8 tos, struct net_device *dev, 181 u8 tos, struct net_device *devin); [all …]
|
D | erspan.h | 146 static inline u8 tos_to_cos(u8 tos) in tos_to_cos() argument 150 dscp = tos >> 2; in tos_to_cos() 167 u8 tos; in erspan_build_header() local 170 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header() 191 ershdr->cos = tos_to_cos(tos); in erspan_build_header() 264 u8 tos; in erspan_build_header_v2() local 266 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header_v2() 285 ershdr->cos = tos_to_cos(tos); in erspan_build_header_v2()
|
D | inet_ecn.h | 54 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit() 61 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit() 78 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce() 98 iph->tos |= INET_ECN_CE; in IP_ECN_set_ce() 104 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear() 213 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate() 219 return INET_ECN_decapsulate(skb, oiph->tos, inner); in IP_ECN_decapsulate() 228 inner = ip_hdr(skb)->tos; in IP6_ECN_decapsulate()
|
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 | dst_metadata.h | 143 __u8 tos, __u8 ttl, in __ip_tun_set_dst() argument 156 saddr, daddr, tos, ttl, in __ip_tun_set_dst() 168 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst() 174 __u8 tos, __u8 ttl, in __ipv6_tun_set_dst() argument 198 info->key.tos = tos; in __ipv6_tun_set_dst()
|
D | ip_tunnels.h | 52 u8 tos; /* TOS for IPv4, TC for IPv6 */ member 191 u8 tos, u8 ttl, __be32 label, in ip_tunnel_key_init() argument 200 key->tos = tos; in ip_tunnel_key_init() 262 __be32 key, __u8 tos, int oif, in ip_tunnel_init_flow() argument 269 fl4->flowi4_tos = tos; in ip_tunnel_init_flow() 375 return iph->tos; in ip_tunnel_get_dsfield() 394 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, in ip_tunnel_ecn_encap() argument 399 return INET_ECN_encapsulate(tos, inner); in ip_tunnel_ecn_encap() 413 u8 tos, u8 ttl, __be16 df, bool xnet);
|
D | ip.h | 76 __s16 tos; member 83 *ipcm = (struct ipcm_cookie) { .tos = -1 }; in ipcm_init() 168 __u8 tos); 197 return __ip_queue_xmit(sk, skb, fl, inet_sk(sk)->tos); in ip_queue_xmit() 207 return (ipc->tos != -1) ? RT_TOS(ipc->tos) : RT_TOS(inet->tos); in get_rttos() 212 return (ipc->tos != -1) ? RT_CONN_FLAGS_TOS(sk, ipc->tos) : RT_CONN_FLAGS(sk); in get_rtconn_flags() 228 u8 tos; member
|
/Linux-v4.19/net/ipv4/ |
D | xfrm4_mode_tunnel.c | 22 if (INET_ECN_is_ce(XFRM_MODE_SKB_CB(skb)->tos)) in ipip_ecn_decapsulate() 52 top_iph->tos = 0; in xfrm4_mode_tunnel_output() 54 top_iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_mode_tunnel_output() 55 top_iph->tos = INET_ECN_encapsulate(top_iph->tos, in xfrm4_mode_tunnel_output() 56 XFRM_MODE_SKB_CB(skb)->tos); in xfrm4_mode_tunnel_output() 89 ipv4_copy_dscp(XFRM_MODE_SKB_CB(skb)->tos, ipip_hdr(skb)); in xfrm4_mode_tunnel_input()
|
D | fib_rules.c | 40 u8 tos; member 54 if (r->dst_len || r->src_len || r->tos) in fib4_rule_matchall() 182 if (r->tos && (r->tos != fl4->flowi4_tos)) in fib4_rule_match() 223 if (frh->tos & ~IPTOS_TOS_MASK) { in fib4_rule_configure() 268 rule4->tos = frh->tos; in fib4_rule_configure() 311 if (frh->tos && (rule4->tos != frh->tos)) in fib4_rule_compare() 335 frh->tos = rule4->tos; in fib4_rule_fill()
|
D | ip_tunnel.c | 312 RT_TOS(iph->tos), tunnel->parms.link, in ip_tunnel_bind_dev() 412 &iph->saddr, iph->tos); in ip_tunnel_rcv() 561 u8 tos, ttl; in ip_md_tunnel_xmit() local 570 tos = key->tos; in ip_md_tunnel_xmit() 571 if (tos == 1) { in ip_md_tunnel_xmit() 573 tos = inner_iph->tos; in ip_md_tunnel_xmit() 575 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit() 578 RT_TOS(tos), tunnel->parms.link, tunnel->fwmark); in ip_md_tunnel_xmit() 591 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_md_tunnel_xmit() 613 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit() [all …]
|
D | ip_tunnel_core.c | 61 __u8 tos, __u8 ttl, __be16 df, bool xnet) in iptunnel_xmit() argument 85 iph->tos = tos; in iptunnel_xmit() 267 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP_TOS]); in ip_tun_build_state() 289 nla_put_u8(skb, LWTUNNEL_IP_TOS, tun_info->key.tos) || in ip_tun_fill_encap_info() 366 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP6_TC]); in ip6_tun_build_state() 388 nla_put_u8(skb, LWTUNNEL_IP6_TC, tun_info->key.tos) || in ip6_tun_fill_encap_info()
|
D | icmp.c | 433 inet->tos = ip_hdr(skb)->tos; in icmp_reply() 448 fl4.flowi4_tos = RT_TOS(ip_hdr(skb)->tos); in icmp_reply() 468 __be32 saddr, u8 tos, u32 mark, in icmp_route_lookup() argument 482 fl4->flowi4_tos = RT_TOS(tos); in icmp_route_lookup() 529 RT_TOS(tos), rt2->dst.dev); in icmp_route_lookup() 582 u8 tos; in icmp_send() local 689 tos = icmp_pointers[type].error ? ((iph->tos & IPTOS_TOS_MASK) | in icmp_send() 691 iph->tos; in icmp_send() 708 inet_sk(sk)->tos = tos; in icmp_send() 714 rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, mark, in icmp_send()
|
D | netfilter.c | 43 fl4.flowi4_tos = RT_TOS(iph->tos); in ip_route_me_harder() 90 if (!(iph->tos == rt_info->tos && in nf_ip_reroute()
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | nft_chain_route_ipv4.c | 32 u_int8_t tos; in nf_route_table_hook() local 43 tos = iph->tos; in nf_route_table_hook() 52 iph->tos != tos) { in nf_route_table_hook()
|
D | ipt_ECN.c | 33 if ((iph->tos & IPT_ECN_IP_MASK) != (einfo->ip_ect & IPT_ECN_IP_MASK)) { in set_ect_ip() 38 oldtos = iph->tos; in set_ect_ip() 39 iph->tos &= ~IPT_ECN_IP_MASK; in set_ect_ip() 40 iph->tos |= (einfo->ip_ect & IPT_ECN_IP_MASK); in set_ect_ip() 41 csum_replace2(&iph->check, htons(oldtos), htons(iph->tos)); in set_ect_ip()
|
D | iptable_mangle.c | 47 u_int8_t tos; in ipt_mangle_out() local 57 tos = iph->tos; in ipt_mangle_out() 67 iph->tos != tos) { in ipt_mangle_out()
|
/Linux-v4.19/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 | in_route.h | 31 #define RT_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument
|
/Linux-v4.19/arch/x86/events/intel/ |
D | lbr.c | 238 u64 tos; in intel_pmu_lbr_tos() local 240 rdmsrl(x86_pmu.lbr_tos, tos); in intel_pmu_lbr_tos() 241 return tos; in intel_pmu_lbr_tos() 345 u64 tos; in __intel_pmu_lbr_restore() local 353 tos = task_ctx->tos; in __intel_pmu_lbr_restore() 361 rdlbr_from(tos)) { in __intel_pmu_lbr_restore() 368 lbr_idx = (tos - i) & mask; in __intel_pmu_lbr_restore() 377 lbr_idx = (tos - i) & mask; in __intel_pmu_lbr_restore() 384 wrmsrl(x86_pmu.lbr_tos, tos); in __intel_pmu_lbr_restore() 392 u64 tos, from; in __intel_pmu_lbr_save() local [all …]
|
/Linux-v4.19/drivers/infiniband/core/ |
D | cma_configfs.c | 147 u8 tos; in default_roce_tos_show() local 153 tos = cma_get_default_roce_tos(cma_dev, group->port_num); in default_roce_tos_show() 156 return sprintf(buf, "%u\n", tos); in default_roce_tos_show() 165 u8 tos; in default_roce_tos_store() local 167 ret = kstrtou8(buf, 0, &tos); in default_roce_tos_store() 175 ret = cma_set_default_roce_tos(cma_dev, group->port_num, tos); in default_roce_tos_store()
|
/Linux-v4.19/include/trace/events/ |
D | fib.h | 26 __field( __u8, tos ) 45 __entry->tos = flp->flowi4_tos; 87 __entry->tos, __entry->scope, __entry->flags,
|
D | fib6.h | 25 __field( __u8, tos ) 45 __entry->tos = ip6_tclass(flp->flowlabel); 85 __entry->tos, __entry->scope, __entry->flags,
|
/Linux-v4.19/tools/testing/selftests/drivers/net/mlxsw/ |
D | mirror_gre.sh | 21 ttl 100 tos inherit allow-localremote \ 48 ttl 100 tos inherit allow-localremote 140 ip link set dev $tundev type $type tos 0x10 144 ip link set dev $tundev type $type tos inherit
|
/Linux-v4.19/arch/x86/kernel/kprobes/ |
D | core.c | 872 unsigned long *tos = stack_addr(regs); in resume_execution() local 883 *tos &= ~(X86_EFLAGS_TF | X86_EFLAGS_IF); in resume_execution() 884 *tos |= kcb->kprobe_old_flags; in resume_execution() 896 *tos = orig_ip + (*tos - copy_ip); in resume_execution() 900 *tos = orig_ip + (*tos - copy_ip); in resume_execution() 910 *tos = orig_ip + (*tos - copy_ip); in resume_execution()
|
/Linux-v4.19/tools/testing/selftests/net/forwarding/ |
D | mirror_gre_topo_lib.sh | 64 ttl 100 tos inherit 67 ttl 100 tos inherit allow-localremote
|