| /tools/testing/selftests/net/forwarding/ |
| D | tc_flower.sh | 44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 96 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ [all …]
|
| D | tc_actions.sh | 60 local protocol=$2 66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 75 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 85 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \ 87 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 96 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 105 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 117 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 118 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 131 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ [all …]
|
| D | tc_chains.sh | 38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 59 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 61 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 128 tc chain add dev $h2 ingress protocol ip \ 130 tc chain add dev $h2 ingress chain 1 protocol ip \ [all …]
|
| D | tc_flower_cfm.sh | 60 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \ 62 tc filter add dev $h2 ingress protocol cfm pref 1 handle 102 \ 85 tc filter del dev $h2 ingress protocol cfm pref 1 handle 101 flower 86 tc filter del dev $h2 ingress protocol cfm pref 1 handle 102 flower 96 tc filter add dev $h2 ingress protocol cfm pref 1 handle 101 \ 98 tc filter add dev $h2 ingress protocol cfm pref 1 handle 102 \ 100 tc filter add dev $h2 ingress protocol cfm pref 1 handle 103 \ 131 tc filter del dev $h2 ingress protocol cfm pref 1 handle 101 flower 132 tc filter del dev $h2 ingress protocol cfm pref 1 handle 102 flower 133 tc filter del dev $h2 ingress protocol cfm pref 1 handle 103 flower [all …]
|
| D | router_multicast.sh | 240 tc filter add dev $h2 ingress protocol ip pref 1 handle 122 flower \ 242 tc filter add dev $h3 ingress protocol ip pref 1 handle 133 flower \ 266 tc filter del dev $h3 ingress protocol ip pref 1 handle 133 flower 267 tc filter del dev $h2 ingress protocol ip pref 1 handle 122 flower 280 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 122 flower \ 282 tc filter add dev $h3 ingress protocol ipv6 pref 1 handle 133 flower \ 306 tc filter del dev $h3 ingress protocol ipv6 pref 1 handle 133 flower 307 tc filter del dev $h2 ingress protocol ipv6 pref 1 handle 122 flower 323 tc filter add dev $h1 ingress protocol ip pref 1 handle 1 flower \ 325 tc filter add dev $h2 ingress protocol ip pref 1 handle 1 flower \ [all …]
|
| D | tc_police.sh | 132 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 152 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 158 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \ 164 tc filter del dev $rp1 ingress protocol ip pref 1 handle 101 flower 170 tc filter add dev $rp2 egress protocol ip pref 1 handle 101 flower \ 176 tc filter del dev $rp2 egress protocol ip pref 1 handle 101 flower 207 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 212 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \ 219 tc filter add dev $rp2 egress protocol ip pref 1 handle 101 flower \ 227 tc filter del dev $rp2 egress protocol ip pref 1 handle 101 flower [all …]
|
| D | tc_flower_l2_miss.sh | 80 tc filter add dev $swp2 egress protocol ipv4 handle 101 pref 1 \ 84 tc filter add dev $swp2 egress protocol ipv4 handle 102 pref 1 \ 119 tc filter del dev $swp2 egress protocol ipv4 pref 1 handle 102 flower 120 tc filter del dev $swp2 egress protocol ipv4 pref 1 handle 101 flower 137 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \ 141 tc filter add dev $swp2 egress protocol $proto handle 102 pref 1 \ 176 tc filter del dev $swp2 egress protocol $proto pref 1 handle 102 flower 177 tc filter del dev $swp2 egress protocol $proto pref 1 handle 101 flower 254 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \ 263 tc filter del dev $swp2 egress protocol $proto pref 1 handle 101 flower [all …]
|
| D | tc_vlan_modify.sh | 113 tc filter add dev $swp1 ingress protocol all pref 1 handle 1 \ 115 tc filter add dev $swp2 ingress protocol all pref 1 handle 1 \ 126 tc filter del dev $swp2 ingress protocol all pref 1 handle 1 flower 127 tc filter del dev $swp1 ingress protocol all pref 1 handle 1 flower 140 tc filter add dev $swp1 egress protocol all pref 1 handle 1 \ 142 tc filter add dev $swp2 egress protocol all pref 1 handle 1 \ 153 tc filter del dev $swp2 egress protocol all pref 1 handle 1 flower 154 tc filter del dev $swp1 egress protocol all pref 1 handle 1 flower
|
| D | tc_shblocks.sh | 53 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 68 tc filter del block 22 protocol ip pref 1 handle 101 flower 77 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 79 tc filter add block 22 protocol ip pref 2 handle 102 flower \ 94 tc filter del block 22 protocol ip pref 1 handle 101 flower 95 tc filter del block 22 protocol ip pref 2 handle 102 flower
|
| /tools/testing/selftests/bpf/progs/ |
| D | mptcpify.c | 12 int BPF_PROG(mptcpify, int family, int type, int protocol) in BPF_PROG() argument 15 return protocol; in BPF_PROG() 19 (!protocol || protocol == IPPROTO_TCP)) { in BPF_PROG() 23 return protocol; in BPF_PROG()
|
| D | test_lwt_ip_encap.c | 12 __be16 protocol; member 29 hdr.iph.protocol = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre() 41 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre() 75 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre6()
|
| D | test_tc_tunnel.c | 59 __be16 protocol; member 131 iph_inner.protocol = iph6_inner.nexthdr; in __encap_ipv4() 145 if (iph_inner.ihl != 5 || iph_inner.protocol != IPPROTO_TCP) in __encap_ipv4() 180 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4() 233 h_outer.ip.protocol = encap_proto; in __encap_ipv4() 311 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv6() 437 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none() 446 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none() 455 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls() 464 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth() [all …]
|
| D | test_xdp_loop.c | 34 static __always_inline void count_tx(__u32 protocol) in count_tx() argument 38 rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol); in count_tx() 44 __u8 protocol) in get_dport() argument 49 switch (protocol) { in get_dport() 93 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4() 97 vip.protocol = iph->protocol; in handle_ipv4() 128 iph->protocol = IPPROTO_IPIP; in handle_ipv4() 143 count_tx(vip.protocol); in handle_ipv4() 167 vip.protocol = ip6h->nexthdr; in handle_ipv6() 203 count_tx(vip.protocol); in handle_ipv6()
|
| D | test_xdp.c | 38 static __always_inline void count_tx(__u32 protocol) in count_tx() argument 42 rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol); in count_tx() 48 __u8 protocol) in get_dport() argument 53 switch (protocol) { in get_dport() 97 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4() 101 vip.protocol = iph->protocol; in handle_ipv4() 132 iph->protocol = IPPROTO_IPIP; in handle_ipv4() 147 count_tx(vip.protocol); in handle_ipv4() 171 vip.protocol = ip6h->nexthdr; in handle_ipv6() 207 count_tx(vip.protocol); in handle_ipv6()
|
| D | lsm_cgroup.c | 52 int protocol) in real_create() argument 58 if (family == AF_PACKET && protocol != 0) in real_create() 86 int type, int protocol, int kern) in BPF_PROG() argument 89 return real_create(sock, family, protocol); in BPF_PROG() 95 int type, int protocol, int kern) in BPF_PROG() argument 98 return real_create(sock, family, protocol); in BPF_PROG()
|
| D | test_xdp_dynptr.c | 41 static __always_inline void count_tx(__u32 protocol) in count_tx() argument 45 rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol); in count_tx() 50 static __always_inline int get_dport(void *trans_data, __u8 protocol) in get_dport() argument 55 switch (protocol) { in get_dport() 106 dport = get_dport(iph + 1, iph->protocol); in handle_ipv4() 110 vip.protocol = iph->protocol; in handle_ipv4() 140 iph->protocol = IPPROTO_IPIP; in handle_ipv4() 154 count_tx(vip.protocol); in handle_ipv4() 189 vip.protocol = ip6h->nexthdr; in handle_ipv6() 225 count_tx(vip.protocol); in handle_ipv6()
|
| /tools/testing/selftests/drivers/net/mlxsw/ |
| D | tc_restrictions.sh | 47 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 59 tc filter del block 22 protocol ip pref 1 handle 101 flower 64 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 73 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 77 tc filter del block 22 protocol ip pref 1 handle 101 flower 95 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 108 tc filter del block 22 protocol ip pref 1 handle 101 flower 113 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 123 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 130 tc filter add block 22 protocol ip pref 1 handle 101 flower \ [all …]
|
| D | tc_sample.sh | 232 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \ 250 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall 263 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \ 267 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall 269 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \ 284 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \ 288 tc filter add dev $rp1 ingress protocol all pref 2 handle 102 matchall \ 295 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall 297 tc filter add dev $rp1 ingress protocol all pref 2 handle 102 matchall \ 303 tc filter del dev $rp1 ingress protocol all pref 2 handle 102 matchall [all …]
|
| D | one_armed_router.sh | 135 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 139 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 flower \ 143 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 flower \ 171 tc filter del dev $swp2 egress protocol ip pref 2 handle 102 flower 172 tc filter del dev $swp2 egress protocol ip pref 1 handle 101 flower 173 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 178 tc filter add dev $swp1 ingress protocol ipv6 pref 1 handle 101 flower \ 182 tc filter add dev $swp2 egress protocol ipv6 pref 1 handle 101 flower \ 186 tc filter add dev $swp2 egress protocol ipv6 pref 2 handle 102 flower \ 214 tc filter del dev $swp2 egress protocol ipv6 pref 2 handle 102 flower [all …]
|
| D | devlink_trap_acl_drops.sh | 98 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \ 101 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 \ 114 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 123 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 \ 126 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 \ 139 tc filter del dev $swp2 egress protocol ip pref 1 handle 101 flower
|
| /tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
| D | tc_flower.sh | 101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 110 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 125 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 147 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 149 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 158 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 166 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \ 175 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 183 tc filter del dev $h2 ingress protocol ip pref 3 handle 103 flower [all …]
|
| /tools/testing/selftests/net/ |
| D | reuseport_bpf.c | 32 int protocol; member 158 fd[i] = socket(p.recv_family, p.protocol, 0); in build_recv_group() 173 if (p.protocol == SOCK_STREAM) { in build_recv_group() 192 const int fd = socket(p.send_family, p.protocol, 0), one = 1; in send_from() 244 if (p.protocol == SOCK_STREAM) { in test_recv_order() 312 fd1 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 315 fd2 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 368 fd = socket(p.recv_family, p.protocol, 0); in test_filter_no_reuseport() 467 .protocol = SOCK_DGRAM, in main() 474 .protocol = SOCK_DGRAM, in main() [all …]
|
| D | net_helper.sh | 10 local protocol="${3}" 17 [ ${protocol} = "tcp" ] && pattern="${pattern}0A" 20 /proc/net/"${protocol}"* | grep -q "${pattern}"; then
|
| D | socket.c | 15 int protocol; member 49 fd = socket(s->domain, s->type, s->protocol); in run_tests() 64 s->domain, s->type, s->protocol, in run_tests() 77 s->domain, s->type, s->protocol, in run_tests()
|
| /tools/testing/selftests/landlock/ |
| D | net_test.c | 49 srv->protocol = prot; in set_service() 92 (prot->protocol == IPPROTO_TCP || prot->protocol == IPPROTO_IP); in prot_is_tcp() 107 ret = socket(srv->protocol.domain, srv->protocol.type | SOCK_CLOEXEC, in socket_variant() 108 srv->protocol.protocol); in socket_variant() 121 switch (srv->protocol.domain) { in get_addrlen() 144 switch (srv->protocol.domain) { in set_port() 190 switch (srv->protocol.domain) { in bind_variant_addrlen() 226 switch (srv->protocol.domain) { in connect_variant_addrlen() 256 FIXTURE(protocol) in FIXTURE() argument 261 FIXTURE_VARIANT(protocol) in FIXTURE_VARIANT() argument [all …]
|