Lines Matching +full:c +full:- +full:22
2 # SPDX-License-Identifier: GPL-2.0
4 # End-to-end eBPF tunnel test suite
8 # ---------
11 # ----------- | -----------
13 # ----------- | -----------
14 # metadata-mode | native-mode
17 # ---------- | ----------
18 # | veth1 | --------- | veth0 | (underlay network)
19 # ---------- peer ----------
23 # --------------------
24 # Root namespace with metadata-mode tunnel + BPF
26 # veth1 IP: 172.16.1.200, IPv6: 00::22 (underlay)
27 # tunnel dev <type>11, ex: gre11, IPv4: 10.1.1.200, IPv6: 1::22 (overlay)
35 # End-to-end ping packet flow
36 # ---------------------------
50 PING_ARG="-c 3 -w 10 -q"
70 if [ -n "$1" ]; then
93 ip addr add dev veth1 ::22/96
99 local ::11 remote ::22
141 ip addr add dev veth1 ::22/96
148 local ::11 remote ::22 \
153 local ::11 remote ::22 \
184 ip addr add dev veth1 ::22/96
189 ip link add dev $DEV_NS type $TYPE id 22 \
190 remote ::22 # geneve has no local option
219 ip addr add dev veth1 ::22/96
225 local ::11 remote ::22
233 ip addr add dev $DEV 1::22/96
254 if [ $ret -ne 0 ]; then
255 echo -e ${RED}"FAIL: $TYPE"${NC}
258 echo -e ${GREEN}"PASS: $TYPE"${NC}
278 if [ $ret -ne 0 ]; then
279 echo -e ${RED}"FAIL: $TYPE"${NC}
282 echo -e ${GREEN}"PASS: $TYPE"${NC}
308 if [ $ret -ne 0 ]; then
309 echo -e ${RED}"FAIL: $TYPE"${NC}
312 echo -e ${GREEN}"PASS: $TYPE"${NC}
337 if [ $ret -ne 0 ]; then
338 echo -e ${RED}"FAIL: $TYPE"${NC}
341 echo -e ${GREEN}"PASS: $TYPE"${NC}
361 if [ $ret -ne 0 ]; then
362 echo -e ${RED}"FAIL: $TYPE"${NC}
365 echo -e ${GREEN}"PASS: $TYPE"${NC}
384 if [ $ret -ne 0 ]; then
385 echo -e ${RED}"FAIL: $TYPE"${NC}
388 echo -e ${GREEN}"PASS: $TYPE"${NC}
408 if [ $ret -ne 0 ]; then
409 echo -e ${RED}"FAIL: $TYPE"${NC}
412 echo -e ${GREEN}"PASS: $TYPE"${NC}
432 if [ $ret -ne 0 ]; then
433 echo -e ${RED}"FAIL: ip6$TYPE"${NC}
436 echo -e ${GREEN}"PASS: ip6$TYPE"${NC}
457 if [ $ret -ne 0 ]; then
458 echo -e ${RED}"FAIL: $TYPE"${NC}
461 echo -e ${GREEN}"PASS: $TYPE"${NC}
485 if [ $ret -ne 0 ]; then
486 echo -e ${RED}"FAIL: $TYPE"${NC}
489 echo -e ${GREEN}"PASS: $TYPE"${NC}
509 ip netns exec at_ns0 ping6 $PING_ARG 1::22
513 if [ $ret -ne 0 ]; then
514 echo -e ${RED}"FAIL: ip6$TYPE"${NC}
517 echo -e ${GREEN}"PASS: ip6$TYPE"${NC}
525 mkdir -p ${BPF_PIN_TUNNEL_DIR}
528 tc filter add dev $DEV egress bpf da object-pinned ${BPF_PIN_TUNNEL_DIR}/$SET
529 tc filter add dev $DEV ingress bpf da object-pinned ${BPF_PIN_TUNNEL_DIR}/$GET
534 rm -rf ${BPF_PIN_TUNNEL_DIR}
560 ip link help 2>&1 | grep -q "\s$1\s"
561 if [ $? -ne 0 ];then
570 echo 'file ip_gre.c +p' > /sys/kernel/debug/dynamic_debug/control
571 echo 'file ip6_gre.c +p' > /sys/kernel/debug/dynamic_debug/control
572 echo 'file geneve.c +p' > /sys/kernel/debug/dynamic_debug/control
573 echo 'file ipip.c +p' > /sys/kernel/debug/dynamic_debug/control
578 if [ $ret -eq 0 ]; then
640 if [ $? -ne 0 ]; then
641 echo -e "$(basename $0): ${RED}FAIL${NC}"
644 echo -e "$(basename $0): ${GREEN}PASS${NC}"