Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 25 of 112) sorted by relevance

12345

/tools/testing/selftests/net/forwarding/
Dtc_flower.sh44 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 …]
Dtc_actions.sh56 local protocol=$2
62 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
71 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
81 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
83 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
92 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
101 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
113 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower
114 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
127 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
[all …]
Dtc_chains.sh38 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 …]
Dtc_police.sh132 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 …]
Drouter_multicast.sh240 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 …]
Dtc_vlan_modify.sh113 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
Dtc_shblocks.sh53 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
Drouter.sh179 tc filter add dev $rp2 egress protocol ip pref 1 handle 101 \
190 tc filter del dev $rp2 egress protocol ip pref 1 handle 101 flower
226 tc filter add dev $rp2 egress protocol $proto pref 1 handle 101 \
240 tc filter del dev $rp2 egress protocol $proto pref 1 handle 101 flower
257 tc filter add dev $rp2 egress protocol ip pref 1 handle 101 \
268 tc filter del dev $rp2 egress protocol ip pref 1 handle 101 flower
277 tc filter add dev $rp2 egress protocol ipv6 pref 1 handle 101 \
288 tc filter del dev $rp2 egress protocol ipv6 pref 1 handle 101 flower
297 tc filter add dev $rp2 egress protocol ip pref 1 handle 101 \
312 tc filter del dev $rp2 egress protocol ip pref 1 handle 101 flower
/tools/testing/selftests/drivers/net/mlxsw/
Dtc_restrictions.sh46 tc filter add block 22 protocol ip pref 1 handle 101 flower \
58 tc filter del block 22 protocol ip pref 1 handle 101 flower
63 tc filter add block 22 protocol ip pref 1 handle 101 flower \
72 tc filter add block 22 protocol ip pref 1 handle 101 flower \
76 tc filter del block 22 protocol ip pref 1 handle 101 flower
94 tc filter add block 22 protocol ip pref 1 handle 101 flower \
107 tc filter del block 22 protocol ip pref 1 handle 101 flower
112 tc filter add block 22 protocol ip pref 1 handle 101 flower \
122 tc filter add block 22 protocol ip pref 1 handle 101 flower \
129 tc filter add block 22 protocol ip pref 1 handle 101 flower \
[all …]
Dtc_sample.sh231 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
249 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
262 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
266 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
268 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
283 tc filter add dev $rp1 ingress protocol all pref 1 handle 101 matchall \
287 tc filter add dev $rp1 ingress protocol all pref 2 handle 102 matchall \
294 tc filter del dev $rp1 ingress protocol all pref 1 handle 101 matchall
296 tc filter add dev $rp1 ingress protocol all pref 2 handle 102 matchall \
302 tc filter del dev $rp1 ingress protocol all pref 2 handle 102 matchall
[all …]
Done_armed_router.sh134 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
138 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 flower \
142 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 flower \
170 tc filter del dev $swp2 egress protocol ip pref 2 handle 102 flower
171 tc filter del dev $swp2 egress protocol ip pref 1 handle 101 flower
172 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower
177 tc filter add dev $swp1 ingress protocol ipv6 pref 1 handle 101 flower \
181 tc filter add dev $swp2 egress protocol ipv6 pref 1 handle 101 flower \
185 tc filter add dev $swp2 egress protocol ipv6 pref 2 handle 102 flower \
213 tc filter del dev $swp2 egress protocol ipv6 pref 2 handle 102 flower
[all …]
Ddevlink_trap_acl_drops.sh98 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
Ddevlink_trap_tunnel_ipip.sh124 )"08:00:"$( : ETH protocol type
150 tc filter add dev $swp1 egress protocol ip pref 1 handle 101 \
171 tc filter del dev $swp1 egress protocol ip pref 1 handle 101 flower
182 )"08:00:"$( : ETH protocol type
208 tc filter add dev $swp1 egress protocol ip pref 1 handle 101 \
227 tc filter del dev $swp1 egress protocol ip pref 1 handle 101 flower
Dvxlan_flooding.sh178 tc filter add dev br0 egress protocol all pref 1 handle 1 \
181 tc filter add dev $h1 egress protocol all pref 1 handle 1 \
183 tc filter add dev $h1 egress protocol all pref 2 handle 2 \
191 tc filter add dev $rp2 ingress protocol ip pref $i handle $i \
203 tc filter del dev $rp2 ingress protocol ip pref $i \
209 tc filter del dev $h1 egress protocol all pref 2 handle 2 matchall
210 tc filter del dev $h1 egress protocol all pref 1 handle 1 flower
212 tc filter del dev br0 egress protocol all pref 1 handle 1 matchall
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh101 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/
Dreuseport_bpf.c34 int protocol; member
160 fd[i] = socket(p.recv_family, p.protocol, 0); in build_recv_group()
175 if (p.protocol == SOCK_STREAM) { in build_recv_group()
194 const int fd = socket(p.send_family, p.protocol, 0), one = 1; in send_from()
246 if (p.protocol == SOCK_STREAM) { in test_recv_order()
314 fd1 = socket(p.recv_family, p.protocol, 0); in test_extra_filter()
317 fd2 = socket(p.recv_family, p.protocol, 0); in test_extra_filter()
370 fd = socket(p.recv_family, p.protocol, 0); in test_filter_no_reuseport()
469 .protocol = SOCK_DGRAM, in main()
476 .protocol = SOCK_DGRAM, in main()
[all …]
Dsocket.c13 int protocol; member
48 fd = socket(s->domain, s->type, s->protocol); in run_tests()
63 s->domain, s->type, s->protocol, in run_tests()
76 s->domain, s->type, s->protocol, in run_tests()
/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c52 __be16 protocol; member
124 iph_inner.protocol = iph6_inner.nexthdr; in __encap_ipv4()
138 if (iph_inner.ihl != 5 || iph_inner.protocol != IPPROTO_TCP) in __encap_ipv4()
173 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4()
226 h_outer.ip.protocol = encap_proto; in __encap_ipv4()
304 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv6()
375 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
384 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none()
393 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls()
402 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth()
[all …]
Dtest_lwt_ip_encap.c12 __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()
Dtest_xdp.c39 static __always_inline void count_tx(__u32 protocol) in count_tx() argument
43 rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol); in count_tx()
49 __u8 protocol) in get_dport() argument
54 switch (protocol) { in get_dport()
98 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
102 vip.protocol = iph->protocol; in handle_ipv4()
133 iph->protocol = IPPROTO_IPIP; in handle_ipv4()
148 count_tx(vip.protocol); in handle_ipv4()
172 vip.protocol = ip6h->nexthdr; in handle_ipv6()
208 count_tx(vip.protocol); in handle_ipv6()
Dtest_xdp_loop.c35 static __always_inline void count_tx(__u32 protocol) in count_tx() argument
39 rxcnt_count = bpf_map_lookup_elem(&rxcnt, &protocol); in count_tx()
45 __u8 protocol) in get_dport() argument
50 switch (protocol) { in get_dport()
94 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
98 vip.protocol = iph->protocol; in handle_ipv4()
129 iph->protocol = IPPROTO_IPIP; in handle_ipv4()
144 count_tx(vip.protocol); in handle_ipv4()
168 vip.protocol = ip6h->nexthdr; in handle_ipv6()
204 count_tx(vip.protocol); in handle_ipv6()
Dtest_l4lb.c276 pckt->proto = iph->protocol; in parse_icmp()
344 __u8 protocol; in process_packet() local
355 protocol = ip6h->nexthdr; in process_packet()
356 pckt.proto = protocol; in process_packet()
359 if (protocol == IPPROTO_FRAGMENT) { in process_packet()
361 } else if (protocol == IPPROTO_ICMPV6) { in process_packet()
377 protocol = iph->protocol; in process_packet()
378 pckt.proto = protocol; in process_packet()
384 if (protocol == IPPROTO_ICMP) { in process_packet()
394 protocol = pckt.proto; in process_packet()
[all …]
Dtest_l4lb_noinline.c273 pckt->proto = iph->protocol; in parse_icmp()
341 __u8 protocol; in process_packet() local
352 protocol = ip6h->nexthdr; in process_packet()
353 pckt.proto = protocol; in process_packet()
356 if (protocol == IPPROTO_FRAGMENT) { in process_packet()
358 } else if (protocol == IPPROTO_ICMPV6) { in process_packet()
374 protocol = iph->protocol; in process_packet()
375 pckt.proto = protocol; in process_packet()
381 if (protocol == IPPROTO_ICMP) { in process_packet()
391 protocol = pckt.proto; in process_packet()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dxdp.c7 struct vip key4 = {.protocol = 6, .family = AF_INET}; in test_xdp()
8 struct vip key6 = {.protocol = 6, .family = AF_INET6}; in test_xdp()
33 iph->protocol != IPPROTO_IPIP, "ipv4", in test_xdp()
/tools/perf/trace/beauty/
Dsocket.c12 static size_t socket__scnprintf_ipproto(int protocol, char *bf, size_t size, bool show_prefix) in socket__scnprintf_ipproto() argument
17 return strarray__scnprintf(&strarray__socket_ipproto, bf, size, "%d", show_prefix, protocol); in socket__scnprintf_ipproto()

12345