Searched refs:tap_fd (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | lwt_redirect.c | 159 static void send_and_capture_test_packets(const char *test_name, int tap_fd, in send_and_capture_test_packets() argument 173 ret = wait_for_packet(tap_fd, filter, &timeo); in send_and_capture_test_packets() 196 int tap_fd = -1; in setup_redirect_target() local 198 tap_fd = open_tuntap(target_dev, need_mac); in setup_redirect_target() 199 if (!ASSERT_GE(tap_fd, 0, "open_tuntap")) in setup_redirect_target() 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 233 tap_fd = setup_redirect_target(target_dev, need_mac); in test_lwt_redirect_normal() [all …]
|
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()
|
D | flow_dissector.c | 536 static void run_tests_skb_less(int tap_fd, struct bpf_map *keys) in run_tests_skb_less() argument 560 err = tx_tap(tap_fd, &tests[i].pkt, sizeof(tests[i].pkt)); in run_tests_skb_less() 577 static void test_skb_less_prog_attach(struct bpf_flow *skel, int tap_fd) in test_skb_less_prog_attach() argument 589 run_tests_skb_less(tap_fd, skel->maps.last_dissection); in test_skb_less_prog_attach() 595 static void test_skb_less_link_create(struct bpf_flow *skel, int tap_fd) in test_skb_less_link_create() argument 608 run_tests_skb_less(tap_fd, skel->maps.last_dissection); in test_skb_less_link_create() 618 int i, err, prog_fd, keys_fd = -1, tap_fd; in test_flow_dissector() local 668 tap_fd = create_tap("tap0"); in test_flow_dissector() 669 CHECK(tap_fd < 0, "create_tap", "tap_fd %d errno %d\n", tap_fd, errno); in test_flow_dissector() 674 test_skb_less_prog_attach(skel, tap_fd); in test_flow_dissector() [all …]
|