|
38 | 38 | # ping: SRC->[encap at veth2:ingress]->GRE:decap->DST |
39 | 39 | # ping replies go DST->SRC directly |
40 | 40 |
|
| 41 | +BPF_FILE="test_lwt_ip_encap.bpf.o" |
41 | 42 | if [[ $EUID -ne 0 ]]; then |
42 | 43 | echo "This script must be run as root" |
43 | 44 | echo "FAIL" |
@@ -373,14 +374,14 @@ test_egress() |
373 | 374 | # install replacement routes (LWT/eBPF), pings succeed |
374 | 375 | if [ "${ENCAP}" == "IPv4" ] ; then |
375 | 376 | ip -netns ${NS1} route add ${IPv4_DST} encap bpf xmit obj \ |
376 | | - test_lwt_ip_encap.o sec encap_gre dev veth1 ${VRF} |
| 377 | + ${BPF_FILE} sec encap_gre dev veth1 ${VRF} |
377 | 378 | ip -netns ${NS1} -6 route add ${IPv6_DST} encap bpf xmit obj \ |
378 | | - test_lwt_ip_encap.o sec encap_gre dev veth1 ${VRF} |
| 379 | + ${BPF_FILE} sec encap_gre dev veth1 ${VRF} |
379 | 380 | elif [ "${ENCAP}" == "IPv6" ] ; then |
380 | 381 | ip -netns ${NS1} route add ${IPv4_DST} encap bpf xmit obj \ |
381 | | - test_lwt_ip_encap.o sec encap_gre6 dev veth1 ${VRF} |
| 382 | + ${BPF_FILE} sec encap_gre6 dev veth1 ${VRF} |
382 | 383 | ip -netns ${NS1} -6 route add ${IPv6_DST} encap bpf xmit obj \ |
383 | | - test_lwt_ip_encap.o sec encap_gre6 dev veth1 ${VRF} |
| 384 | + ${BPF_FILE} sec encap_gre6 dev veth1 ${VRF} |
384 | 385 | else |
385 | 386 | echo " unknown encap ${ENCAP}" |
386 | 387 | TEST_STATUS=1 |
@@ -431,14 +432,14 @@ test_ingress() |
431 | 432 | # install replacement routes (LWT/eBPF), pings succeed |
432 | 433 | if [ "${ENCAP}" == "IPv4" ] ; then |
433 | 434 | ip -netns ${NS2} route add ${IPv4_DST} encap bpf in obj \ |
434 | | - test_lwt_ip_encap.o sec encap_gre dev veth2 ${VRF} |
| 435 | + ${BPF_FILE} sec encap_gre dev veth2 ${VRF} |
435 | 436 | ip -netns ${NS2} -6 route add ${IPv6_DST} encap bpf in obj \ |
436 | | - test_lwt_ip_encap.o sec encap_gre dev veth2 ${VRF} |
| 437 | + ${BPF_FILE} sec encap_gre dev veth2 ${VRF} |
437 | 438 | elif [ "${ENCAP}" == "IPv6" ] ; then |
438 | 439 | ip -netns ${NS2} route add ${IPv4_DST} encap bpf in obj \ |
439 | | - test_lwt_ip_encap.o sec encap_gre6 dev veth2 ${VRF} |
| 440 | + ${BPF_FILE} sec encap_gre6 dev veth2 ${VRF} |
440 | 441 | ip -netns ${NS2} -6 route add ${IPv6_DST} encap bpf in obj \ |
441 | | - test_lwt_ip_encap.o sec encap_gre6 dev veth2 ${VRF} |
| 442 | + ${BPF_FILE} sec encap_gre6 dev veth2 ${VRF} |
442 | 443 | else |
443 | 444 | echo "FAIL: unknown encap ${ENCAP}" |
444 | 445 | TEST_STATUS=1 |
|
0 commit comments