Home
last modified time | relevance | path

Searched refs:dsfield (Results 1 – 17 of 17) sorted by relevance

/Linux-v6.1/tools/testing/selftests/net/forwarding/
Dpedit_dsfield.sh170 local dsfield
172 for dsfield in 0 1 2 3 128 252 253 254 255; do
174 "ip dsfield set $dsfield" \
175 ip "ip_tos $dsfield" \
229 flower action pedit ex munge ip dsfield set 124 retain 0xfc \
230 action pedit ex munge ip dsfield set 1 retain 0x03
250 local dsfield
252 for dsfield in 0 1 2 3 128 252 253 254 255; do
254 "ip6 traffic_class set $dsfield" \
255 ipv6 "ip_tos $dsfield" \
/Linux-v6.1/include/net/
Ddsfield.h32 __u8 dsfield; in ipv4_change_dsfield() local
34 dsfield = (iph->tos & mask) | value; in ipv4_change_dsfield()
37 check -= dsfield; in ipv4_change_dsfield()
40 iph->tos = dsfield; in ipv4_change_dsfield()
Dinet_ecn.h23 static inline int INET_ECN_is_ce(__u8 dsfield) in INET_ECN_is_ce() argument
25 return (dsfield & INET_ECN_MASK) == INET_ECN_CE; in INET_ECN_is_ce()
28 static inline int INET_ECN_is_not_ect(__u8 dsfield) in INET_ECN_is_not_ect() argument
30 return (dsfield & INET_ECN_MASK) == INET_ECN_NOT_ECT; in INET_ECN_is_not_ect()
33 static inline int INET_ECN_is_capable(__u8 dsfield) in INET_ECN_is_capable() argument
35 return dsfield & INET_ECN_ECT_0; in INET_ECN_is_capable()
Dinet_dscp.h42 static inline dscp_t inet_dsfield_to_dscp(__u8 dsfield) in inet_dsfield_to_dscp() argument
44 return (__force dscp_t)(dsfield & INET_DSCP_MASK); in inet_dsfield_to_dscp()
Dcodel_impl.h257 int dsfield = skb_get_dsfield(skb); in codel_dequeue() local
259 set_ce = (dsfield >= 0 && in codel_dequeue()
260 (((u8)dsfield & params->ce_threshold_mask) == in codel_dequeue()
Dip6_tunnel.h145 int ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev, __u8 dsfield,
/Linux-v6.1/net/ipv6/
Dip6_gre.c633 struct flowi6 *fl6, __u8 *dsfield, in prepare_ip6gre_xmit_ipv4() argument
645 *dsfield = ipv4_get_dsfield(iph); in prepare_ip6gre_xmit_ipv4()
647 *dsfield = ip6_tclass(t->parms.flowinfo); in prepare_ip6gre_xmit_ipv4()
659 struct flowi6 *fl6, __u8 *dsfield, in prepare_ip6gre_xmit_ipv6() argument
687 *dsfield = ipv6_get_dsfield(ipv6h); in prepare_ip6gre_xmit_ipv6()
689 *dsfield = ip6_tclass(t->parms.flowinfo); in prepare_ip6gre_xmit_ipv6()
706 struct flowi6 *fl6, __u8 *dsfield, in prepare_ip6gre_xmit_other() argument
717 *dsfield = 0; in prepare_ip6gre_xmit_other()
719 *dsfield = ip6_tclass(t->parms.flowinfo); in prepare_ip6gre_xmit_other()
743 struct net_device *dev, __u8 dsfield, in __gre6_xmit() argument
[all …]
Dip6_tunnel.c712 __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; in ip4ip6_dscp_ecn_decapsulate() local
715 ipv4_change_dsfield(ip_hdr(skb), INET_ECN_MASK, dsfield); in ip4ip6_dscp_ecn_decapsulate()
1068 int ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev, __u8 dsfield, in ip6_tnl_xmit() argument
1147 fl6->flowlabel = ip6_make_flowinfo(dsfield, fl6->flowlabel); in ip6_tnl_xmit()
1259 ip6_flow_hdr(ipv6h, dsfield, in ip6_tnl_xmit()
1286 __u8 dsfield, orig_dsfield; in ipxip6_tnl_xmit() local
1309 dsfield = key->tos; in ipxip6_tnl_xmit()
1320 orig_dsfield = dsfield; in ipxip6_tnl_xmit()
1357 dsfield = orig_dsfield; in ipxip6_tnl_xmit()
1359 dsfield = ip6_tclass(t->parms.flowinfo); in ipxip6_tnl_xmit()
[all …]
/Linux-v6.1/net/xfrm/
Dxfrm_output.c324 int dsfield; in xfrm6_tunnel_encap_add() local
342 dsfield = 0; in xfrm6_tunnel_encap_add()
344 dsfield = XFRM_MODE_SKB_CB(skb)->tos; in xfrm6_tunnel_encap_add()
345 dsfield = INET_ECN_encapsulate(dsfield, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_tunnel_encap_add()
347 dsfield &= ~INET_ECN_MASK; in xfrm6_tunnel_encap_add()
348 ipv6_change_dsfield(top_iph, 0, dsfield); in xfrm6_tunnel_encap_add()
/Linux-v6.1/tools/testing/selftests/net/
Dpmtu.sh821 ip -netns "${NS_A}" -4 rule add dsfield "${policy_mark}" \
993 dsfield="${3}"
995 if [ -z "${dsfield}" ]; then
996 dsfield=0
999 ${ns_cmd} ip route get "${dst}" dsfield "${dsfield}"
1005 dsfield="${3}"
1007 mtu_parse "$(route_get_dst_exception "${ns_cmd}" "${dst}" "${dsfield}")"
1143 dsfield=${policy_mark} # No ECN bit set (Not-ECT)
1144 run_cmd "${ns_a}" ping -q -M want -Q "${dsfield}" -c 1 -w 1 -s "${len}" "${dst1}"
1146 dsfield=$(printf "%#x" $((policy_mark + 0x02))) # ECN=2 (ECT(0))
[all …]
Dfib_tests.sh1487 $IP route get fibmatch 172.16.102.1 dsfield 0x10 | \
1491 $IP route get fibmatch 172.16.102.1 dsfield 0x11 | \
1495 $IP route get fibmatch 172.16.102.1 dsfield 0x12 | \
1499 $IP route get fibmatch 172.16.102.1 dsfield 0x13 | \
1504 $IP route get fibmatch 172.16.102.1 dsfield 0x14 | \
1508 $IP route get fibmatch 172.16.102.1 dsfield 0x15 | \
1512 $IP route get fibmatch 172.16.102.1 dsfield 0x16 | \
1516 $IP route get fibmatch 172.16.102.1 dsfield 0x17 | \
1521 $IP route get fibmatch 172.16.102.1 dsfield 0x00 | \
1525 $IP route get fibmatch 172.16.102.1 dsfield 0x01 | \
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/
Dtest_flow_dissector.c183 static void ipv6_set_dsfield(struct ipv6hdr *ip6h, uint8_t dsfield) in ipv6_set_dsfield() argument
189 val |= ((uint16_t) dsfield) << 4; in ipv6_set_dsfield()
196 int payload_len, uint8_t dsfield) in build_ipv6_header() argument
204 ipv6_set_dsfield(ip6h, dsfield); in build_ipv6_header()
/Linux-v6.1/net/netfilter/ipvs/
Dip_vs_xmit.c949 __u32 *payload_len, __u8 *dsfield, __u8 *ttl, in ip_vs_prepare_tunneled_skb() argument
1001 *dsfield = INET_ECN_encapsulate(old_dsfield, old_dsfield); in ip_vs_prepare_tunneled_skb()
1142 __u8 dsfield = 0; in ip_vs_tunnel_xmit() local
1199 &next_protocol, NULL, &dsfield, in ip_vs_tunnel_xmit()
1255 iph->tos = dsfield; in ip_vs_tunnel_xmit()
1293 __u8 dsfield = 0; in ip_vs_tunnel_xmit_v6() local
1348 &dsfield, &ttl, NULL); in ip_vs_tunnel_xmit_v6()
1403 ipv6_change_dsfield(iph, 0, dsfield); in ip_vs_tunnel_xmit_v6()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_actions.h79 u8 dsfield,
Dcore_acl_flex_actions.c1579 u8 dsfield, in mlxsw_afa_block_append_qos_dsfield() argument
1583 true, dsfield >> 2, in mlxsw_afa_block_append_qos_dsfield()
1584 true, dsfield & 0x03, in mlxsw_afa_block_append_qos_dsfield()
/Linux-v6.1/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_router.sh254 action pedit ex munge ip dsfield set $((3 << 2)) retain 0xfc \
/Linux-v6.1/drivers/acpi/acpica/
DMakefile16 dsfield.o \