Home
last modified time | relevance | path

Searched refs:tos (Results 1 – 25 of 244) sorted by relevance

12345678910

/linux/samples/bpf/
H A Dtcp_tos_reflect_kern.c31 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...]
/linux/drivers/infiniband/core/
H A Dcma_trace.h30 __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...]
/linux/include/net/
H A Dinet_ecn.h56 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 Ddsfield.h18 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()
H A Ddst_metadata.h199 __u8 tos, __u8 ttl, in __ip_tun_set_dst() argument
212 saddr, daddr, tos, ttl, in __ip_tun_set_dst()
224 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst()
230 __u8 tos, __u8 ttl, in __ipv6_tun_set_dst() argument
254 info->key.tos = tos; in __ipv6_tun_set_dst()
H A Dip_tunnels.h72 u8 tos; /* TOS for IPv4, TC for IPv6 */ member
282 u8 tos, u8 ttl, __be32 label, in ip_tunnel_key_init() argument
292 key->tos = tos; in ip_tunnel_key_init()
350 __be32 key, __u8 tos, in ip_tunnel_init_flow() argument
365 fl4->flowi4_tos = tos; in ip_tunnel_init_flow()
555 return iph->tos; in ip_tunnel_get_dsfield()
587 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, in ip_tunnel_ecn_encap() argument
592 return INET_ECN_encapsulate(tos, inner); in ip_tunnel_ecn_encap()
606 u8 tos, u
[all...]
/linux/net/xfrm/
H A Dxfrm_inout.h16 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/arch/x86/include/asm/
H A Dirq_stack.h37 * @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...]
/linux/tools/testing/selftests/drivers/net/ocelot/
H A Dbasic_qos.sh157 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}
/linux/net/ipv4/netfilter/
H A Diptable_mangle.c44 u8 tos; in ipt_mangle_out() local
51 tos = iph->tos; in ipt_mangle_out()
62 iph->tos != tos) { in ipt_mangle_out()
H A Dipt_ECN.c30 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/include/uapi/linux/
H A Dip.h25 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument
32 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) argument
97 __u8 tos; member
H A Drds.h160 __u8 tos; member
183 __u8 tos; member
194 __u8 tos; member
227 __u8 tos; member
254 __u8 tos; member
270 __u8 tos; member
/linux/tools/testing/selftests/net/forwarding/
H A Dsch_red.sh257 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
270 -a own -b $h3_mac -t tcp -q tos=0x01 &
291 -a own -b $h3_mac -t tcp -q tos=0x01 &
315 -a own -b $h3_mac -t tcp -q tos=0x01 &
320 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01)
328 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
385 -a own -b $h3_mac -t tcp -q tos=0x01 &
392 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01)
397 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
/linux/net/netfilter/
H A Dnft_chain_route.c26 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/tools/testing/selftests/drivers/net/mlxsw/
H A Dvxlan.sh92 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
109 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
126 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
144 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 \
163 ttl 20 tos inherit dstport 4789
180 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
198 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 dev dummy1
216 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 \
234 ttl 20 tos 20 local $LOCAL_IP_1 dstport 4789
241 log_test "vxlan device with static tos"
[all...]
H A Dvxlan_ipv6.sh28 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789
45 noudp6zerocsumrx udp6zerocsumtx ttl 20 tos inherit \
54 udp6zerocsumrx noudp6zerocsumtx ttl 20 tos inherit \
H A Dsch_red_core.sh414 backlog=$(build_backlog $vlan $((3 * limit / 2)) tcp tos=0x01)
429 $h3_mac tos=0x01
470 $h3_mac tos=0x01
501 $h3_mac tos=0x01
506 backlog=$(build_backlog $vlan $((2 * limit / 3)) tcp tos=0x01)
514 backlog=$(build_backlog $vlan $((3 * limit / 2)) tcp tos=0x01)
581 $h3_mac tos=0x01
587 build_backlog $vlan $((2 * limit / 3)) tcp tos=0x01 >/dev/null
596 build_backlog $vlan $((3 * limit / 2)) tcp tos=0x01 >/dev/null
/linux/net/ipv4/
H A Dip_tunnel.c298 iph->tos & INET_DSCP_MASK, tunnel->net, in ip_tunnel_bind_dev()
427 &iph->saddr, iph->tos); in ip_tunnel_rcv()
596 u8 tos, ttl; in ip_md_tunnel_xmit() local
606 tos = key->tos; in ip_md_tunnel_xmit()
607 if (tos == 1) { in ip_md_tunnel_xmit()
609 tos = inner_iph->tos; in ip_md_tunnel_xmit()
611 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit()
615 tos in ip_md_tunnel_xmit()
696 u8 tos, ttl; ip_tunnel_xmit() local
[all...]
/linux/tools/testing/selftests/net/
H A Dl2_tos_ttl_inherit.sh37 # Get a random hex tos value between 0x00 and 0xfc, a multiple of 4
73 # We don't want a test-tos of 0x00,
74 # because this is the value that we get when no tos is set.
81 tos="fixed $test_tos"
84 tos="inherit $expected_tos"
102 "$type" "$outer" "$inner" "$tos" "$ttl" "$vlan"
141 remote 198.18.0.2 tos $test_tos ttl $test_ttl \
144 remote 198.18.0.1 tos $test_tos ttl $test_ttl \
155 remote fdd1:ced0:5d88:3fce::2 tos $test_tos \
158 remote fdd1:ced0:5d88:3fce::1 tos
[all...]
/linux/drivers/net/ethernet/google/gve/
H A Dgve_flow_rule.c46 fsp->h_u.tcp_ip4_spec.tos = flow_rule->key.tos; in gve_fill_ethtool_flow_spec()
51 fsp->m_u.tcp_ip4_spec.tos = flow_rule->mask.tos; in gve_fill_ethtool_flow_spec()
58 fsp->h_u.ah_ip4_spec.tos = flow_rule->key.tos; in gve_fill_ethtool_flow_spec()
62 fsp->m_u.ah_ip4_spec.tos = flow_rule->mask.tos; in gve_fill_ethtool_flow_spec()
/linux/drivers/infiniband/hw/irdma/
H A Dtrace_cm.h119 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_pr
[all...]
/linux/arch/x86/events/intel/
H A Dlbr.c210 u64 tos; in intel_pmu_lbr_tos() local
212 rdmsrq(x86_pmu.lbr_tos, tos); in intel_pmu_lbr_tos()
213 return tos; in intel_pmu_lbr_tos()
365 u64 tos = task_ctx->tos; in intel_pmu_lbr_restore() local
371 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore()
376 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore()
383 wrmsrq(x86_pmu.lbr_tos, tos); in intel_pmu_lbr_restore()
422 return !rdlbr_from(((struct x86_perf_task_context *)ctx)->tos, NULL); in lbr_is_reset_in_cstate()
464 u64 tos; in intel_pmu_lbr_save() local
742 u64 tos = intel_pmu_lbr_tos(); intel_pmu_lbr_read_32() local
777 u64 tos = intel_pmu_lbr_tos(); intel_pmu_lbr_read_64() local
[all...]
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c951 fsp->h_u.tcp_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry()
956 fsp->m_u.tcp_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry()
963 fsp->h_u.ah_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry()
967 fsp->m_u.ah_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry()
973 fsp->h_u.usr_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry()
[all...]
/linux/net/rds/
H A Dconnection.c87 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()
315 tos, dev_if); in __rds_conn_create()
350 struct rds_transport *trans, u8 tos, in rds_conn_create() argument
353 return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, 0, dev_if); in rds_conn_create()
361 u8 tos, gfp_t gfp, int dev_if) in rds_conn_create_outgoing() argument
363 return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, in rds_conn_create_outgoing()
[all...]

12345678910