/Linux-v5.15/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()
|
/Linux-v5.15/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 sysfs_emit(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()
|
/Linux-v5.15/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 | 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() 276 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate() 285 return INET_ECN_decapsulate(skb, oiph->tos, inner); in IP_ECN_decapsulate() 295 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() 381 return iph->tos; in ip_tunnel_get_dsfield() 400 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, in ip_tunnel_ecn_encap() argument 405 return INET_ECN_encapsulate(tos, inner); in ip_tunnel_ecn_encap() 419 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()
|
/Linux-v5.15/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()
|
/Linux-v5.15/net/ipv4/ |
D | fib_rules.c | 38 u8 tos; member 52 if (r->dst_len || r->src_len || r->tos) in fib4_rule_matchall() 187 if (r->tos && (r->tos != fl4->flowi4_tos)) in fib4_rule_match() 232 if (frh->tos & ~IPTOS_TOS_MASK) { in fib4_rule_configure() 277 rule4->tos = frh->tos; in fib4_rule_configure() 320 if (frh->tos && (rule4->tos != frh->tos)) in fib4_rule_compare() 344 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 …]
|
/Linux-v5.15/arch/x86/include/asm/ |
D | irq_stack.h | 82 register void *tos asm("r11"); \ 84 tos = ((void *)__this_cpu_read(hardirq_stack_ptr)); \ 94 : "+r" (tos), ASM_CALL_CONSTRAINT \ 95 : [__func] "i" (func), [tos] "r" (tos) argconstr \
|
/Linux-v5.15/net/ipv4/netfilter/ |
D | iptable_mangle.c | 41 u_int8_t tos; in ipt_mangle_out() local 51 tos = iph->tos; in ipt_mangle_out() 61 iph->tos != tos) { in ipt_mangle_out()
|
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()
|
/Linux-v5.15/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
|
/Linux-v5.15/tools/testing/selftests/net/forwarding/ |
D | sch_red.sh | 275 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 288 -a own -b $h3_mac -t tcp -q tos=0x01 & 311 -a own -b $h3_mac -t tcp -q tos=0x01 & 337 -a own -b $h3_mac -t tcp -q tos=0x01 & 341 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 349 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 411 -a own -b $h3_mac -t tcp -q tos=0x01 & 417 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 422 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/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()
|
/Linux-v5.15/drivers/infiniband/hw/irdma/ |
D | trace_cm.h | 119 TP_PROTO(struct irdma_device *iwdev, u8 tos, u8 user_pri), 120 TP_ARGS(iwdev, tos, user_pri), 122 __field(u8, tos) 126 __entry->tos = tos; 131 __entry->tos, 137 TP_PROTO(struct irdma_device *iwdev, u8 tos, u8 user_pri), 138 TP_ARGS(iwdev, tos, user_pri)); 141 TP_PROTO(struct irdma_device *iwdev, u8 tos, u8 user_pri), 142 TP_ARGS(iwdev, tos, user_pri));
|
/Linux-v5.15/arch/x86/events/intel/ |
D | lbr.c | 289 u64 tos; in intel_pmu_lbr_tos() local 291 rdmsrl(x86_pmu.lbr_tos, tos); in intel_pmu_lbr_tos() 292 return tos; in intel_pmu_lbr_tos() 447 u64 tos = task_ctx->tos; in intel_pmu_lbr_restore() local 451 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore() 456 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore() 463 wrmsrl(x86_pmu.lbr_tos, tos); in intel_pmu_lbr_restore() 502 return !rdlbr_from(((struct x86_perf_task_context *)ctx)->tos, NULL); in lbr_is_reset_in_cstate() 538 u64 tos; in intel_pmu_lbr_save() local 542 tos = intel_pmu_lbr_tos(); in intel_pmu_lbr_save() [all …]
|
/Linux-v5.15/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 1038 fsp->h_u.tcp_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry() 1043 fsp->m_u.tcp_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry() 1050 fsp->h_u.ah_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry() 1054 fsp->m_u.ah_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry() 1060 fsp->h_u.usr_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry() 1066 fsp->m_u.usr_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry() 1226 fltr->ip_data.tos = fsp->h_u.tcp_ip4_spec.tos; in iavf_add_fdir_fltr_info() 1231 fltr->ip_mask.tos = fsp->m_u.tcp_ip4_spec.tos; in iavf_add_fdir_fltr_info() 1238 fltr->ip_data.tos = fsp->h_u.ah_ip4_spec.tos; in iavf_add_fdir_fltr_info() 1242 fltr->ip_mask.tos = fsp->m_u.ah_ip4_spec.tos; in iavf_add_fdir_fltr_info() [all …]
|
/Linux-v5.15/net/rds/ |
D | connection.c | 87 u8 tos, int dev_if) in rds_conn_lookup() argument 95 conn->c_tos == tos && in rds_conn_lookup() 164 gfp_t gfp, u8 tos, in __rds_conn_create() argument 176 conn = rds_conn_lookup(net, head, laddr, faddr, trans, tos, dev_if); in __rds_conn_create() 210 conn->c_tos = tos; in __rds_conn_create() 314 tos, dev_if); in __rds_conn_create() 349 struct rds_transport *trans, u8 tos, in rds_conn_create() argument 352 return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, 0, dev_if); in rds_conn_create() 360 u8 tos, gfp_t gfp, int dev_if) in rds_conn_create_outgoing() argument 362 return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, 1, dev_if); in rds_conn_create_outgoing() [all …]
|