Searched refs:tap_fd (Results 1 – 4 of 4) sorted by relevance
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | lwt_redirect.c | 196 int tap_fd = -1; in setup_redirect_target() local 219 return tap_fd; in setup_redirect_target() 222 if (tap_fd >= 0) in setup_redirect_target() 223 close(tap_fd); in setup_redirect_target() 230 int tap_fd = -1; in test_lwt_redirect_normal() local 238 close(tap_fd); in test_lwt_redirect_normal() 244 int tap_fd = -1; in test_lwt_redirect_normal_nomac() local 252 close(tap_fd); in test_lwt_redirect_normal_nomac() 261 int tap_fd = -1; in __test_lwt_redirect_dev_down() local 272 close(tap_fd); in __test_lwt_redirect_dev_down() [all …]
|
| A D | lwt_reroute.c | 155 int tap_fd = -1; in setup() local 157 tap_fd = open_tuntap(tun_dev, false); in setup() 158 if (!ASSERT_GE(tap_fd, 0, "open_tun")) in setup() 178 return tap_fd; in setup() 181 if (tap_fd >= 0) in setup() 182 close(tap_fd); in setup()
|
| A D | xdp_context_test_run.c | 267 int tap_fd = -1; in test_xdp_context_tuntap() local 275 tap_fd = open_tuntap(TAP_NAME, true); in test_xdp_context_tuntap() 276 if (!ASSERT_GE(tap_fd, 0, "open_tuntap")) in test_xdp_context_tuntap() 312 ret = write(tap_fd, packet, sizeof(packet)); in test_xdp_context_tuntap() 319 if (tap_fd >= 0) in test_xdp_context_tuntap() 320 close(tap_fd); in test_xdp_context_tuntap()
|
| A D | flow_dissector.c | 682 err = tx_tap(tap_fd, &tests[i].pkt, sizeof(tests[i].pkt)); in run_tests_skb_less() 705 int err, prog_fd, tap_fd; in test_flow_dissector_skb_less_direct_attach() local 729 tap_fd = create_tap("tap0"); in test_flow_dissector_skb_less_direct_attach() 730 if (!ASSERT_OK_FD(tap_fd, "create_tap")) in test_flow_dissector_skb_less_direct_attach() 736 run_tests_skb_less(tap_fd, skel->maps.last_dissection, in test_flow_dissector_skb_less_direct_attach() 743 close(tap_fd); in test_flow_dissector_skb_less_direct_attach() 752 int err, net_fd, tap_fd; in test_flow_dissector_skb_less_indirect_attach() local 773 tap_fd = create_tap("tap0"); in test_flow_dissector_skb_less_indirect_attach() 774 if (!ASSERT_OK_FD(tap_fd, "create_tap")) in test_flow_dissector_skb_less_indirect_attach() 784 run_tests_skb_less(tap_fd, skel->maps.last_dissection, in test_flow_dissector_skb_less_indirect_attach() [all …]
|
Completed in 9 milliseconds