/linux-6.6.21/tools/testing/selftests/net/ |
D | fib_rule_tests.sh | 259 local dsfield 267 $IP -6 rule add dsfield 0x04 table $RTABLE_PEER 272 for dsfield in 0x04 0x05 0x06 0x07; do 274 -Q "${dsfield}" -l 2001:db8::1:11 -r 2001:db8::1:11 275 log_test $? 0 "rule6 dsfield udp connect (dsfield ${dsfield})" 277 nettest -q -6 -B -t 5 -N testns -O peerns -Q "${dsfield}" \ 279 log_test $? 0 "rule6 dsfield tcp connect (dsfield ${dsfield})" 282 $IP -6 rule del dsfield 0x04 table $RTABLE_PEER 396 local dsfield 404 $IP -4 rule add dsfield 0x04 table $RTABLE_PEER [all …]
|
D | pmtu.sh | 816 ip -netns "${NS_A}" -4 rule add dsfield "${policy_mark}" \ 987 dsfield="${3}" 989 if [ -z "${dsfield}" ]; then 990 dsfield=0 993 ${ns_cmd} ip route get "${dst}" dsfield "${dsfield}" 999 dsfield="${3}" 1001 mtu_parse "$(route_get_dst_exception "${ns_cmd}" "${dst}" "${dsfield}")" 1137 dsfield=${policy_mark} # No ECN bit set (Not-ECT) 1138 run_cmd "${ns_a}" ping -q -M want -Q "${dsfield}" -c 1 -w 1 -s "${len}" "${dst1}" 1140 dsfield=$(printf "%#x" $((policy_mark + 0x02))) # ECN=2 (ECT(0)) [all …]
|
D | nettest.c | 92 uint8_t dsfield; member 586 static int set_dsfield(int sd, int version, int dsfield) in set_dsfield() argument 588 if (!dsfield) in set_dsfield() 593 if (setsockopt(sd, SOL_IP, IP_TOS, &dsfield, in set_dsfield() 594 sizeof(dsfield)) < 0) { in set_dsfield() 601 if (setsockopt(sd, SOL_IPV6, IPV6_TCLASS, &dsfield, in set_dsfield() 602 sizeof(dsfield)) < 0) { in set_dsfield() 1365 if (set_dsfield(sd, AF_INET, args->dsfield) != 0) in msock_init() 1504 if (set_dsfield(sd, args->version, args->dsfield) != 0) in lsock_init() 1723 if (set_dsfield(sd, args->version, args->dsfield) != 0) in connectsock() [all …]
|
D | fib_tests.sh | 1645 $IP route get fibmatch 172.16.102.1 dsfield 0x10 | \ 1649 $IP route get fibmatch 172.16.102.1 dsfield 0x11 | \ 1653 $IP route get fibmatch 172.16.102.1 dsfield 0x12 | \ 1657 $IP route get fibmatch 172.16.102.1 dsfield 0x13 | \ 1662 $IP route get fibmatch 172.16.102.1 dsfield 0x14 | \ 1666 $IP route get fibmatch 172.16.102.1 dsfield 0x15 | \ 1670 $IP route get fibmatch 172.16.102.1 dsfield 0x16 | \ 1674 $IP route get fibmatch 172.16.102.1 dsfield 0x17 | \ 1679 $IP route get fibmatch 172.16.102.1 dsfield 0x00 | \ 1683 $IP route get fibmatch 172.16.102.1 dsfield 0x01 | \ [all …]
|
/linux-6.6.21/tools/testing/selftests/net/forwarding/ |
D | pedit_dsfield.sh | 172 local dsfield 174 for dsfield in 0 1 2 3 128 252 253 254 255; do 176 "ip dsfield set $dsfield" \ 177 ip "ip_tos $dsfield" \ 231 flower action pedit ex munge ip dsfield set 124 retain 0xfc \ 232 action pedit ex munge ip dsfield set 1 retain 0x03 252 local dsfield 254 for dsfield in 0 1 2 3 128 252 253 254 255; do 256 "ip6 traffic_class set $dsfield" \ 257 ipv6 "ip_tos $dsfield" \
|
/linux-6.6.21/include/net/ |
D | dsfield.h | 32 __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()
|
D | inet_ecn.h | 23 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()
|
D | inet_dscp.h | 42 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()
|
D | codel_impl.h | 257 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()
|
D | ip6_tunnel.h | 145 int ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev, __u8 dsfield,
|
/linux-6.6.21/net/ipv6/ |
D | ip6_gre.c | 633 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 …]
|
D | ip6_tunnel.c | 712 __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() 1083 int ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev, __u8 dsfield, in ip6_tnl_xmit() argument 1161 fl6->flowlabel = ip6_make_flowinfo(dsfield, fl6->flowlabel); in ip6_tnl_xmit() 1273 ip6_flow_hdr(ipv6h, dsfield, in ip6_tnl_xmit() 1300 __u8 dsfield, orig_dsfield; in ipxip6_tnl_xmit() local 1323 dsfield = key->tos; in ipxip6_tnl_xmit() 1334 orig_dsfield = dsfield; in ipxip6_tnl_xmit() 1371 dsfield = orig_dsfield; in ipxip6_tnl_xmit() 1373 dsfield = ip6_tclass(t->parms.flowinfo); in ipxip6_tnl_xmit() [all …]
|
/linux-6.6.21/net/xfrm/ |
D | xfrm_output.c | 323 int dsfield; in xfrm6_tunnel_encap_add() local 341 dsfield = 0; in xfrm6_tunnel_encap_add() 343 dsfield = XFRM_MODE_SKB_CB(skb)->tos; in xfrm6_tunnel_encap_add() 344 dsfield = INET_ECN_encapsulate(dsfield, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_tunnel_encap_add() 346 dsfield &= ~INET_ECN_MASK; in xfrm6_tunnel_encap_add() 347 ipv6_change_dsfield(top_iph, 0, dsfield); in xfrm6_tunnel_encap_add()
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 183 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-6.6.21/net/netfilter/ipvs/ |
D | ip_vs_xmit.c | 933 __u32 *payload_len, __u8 *dsfield, __u8 *ttl, in ip_vs_prepare_tunneled_skb() argument 985 *dsfield = INET_ECN_encapsulate(old_dsfield, old_dsfield); in ip_vs_prepare_tunneled_skb() 1126 __u8 dsfield = 0; in ip_vs_tunnel_xmit() local 1181 &next_protocol, NULL, &dsfield, in ip_vs_tunnel_xmit() 1238 iph->tos = dsfield; in ip_vs_tunnel_xmit() 1272 __u8 dsfield = 0; in ip_vs_tunnel_xmit_v6() local 1325 &dsfield, &ttl, NULL); in ip_vs_tunnel_xmit_v6() 1381 ipv6_change_dsfield(iph, 0, dsfield); in ip_vs_tunnel_xmit_v6()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_acl_flex_actions.h | 79 u8 dsfield,
|
D | core_acl_flex_actions.c | 1579 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-6.6.21/tools/testing/selftests/drivers/net/mlxsw/ |
D | qos_dscp_router.sh | 241 action pedit ex munge ip dsfield set $((3 << 2)) retain 0xfc \
|
/linux-6.6.21/drivers/acpi/acpica/ |
D | Makefile | 16 dsfield.o \
|