Home
last modified time | relevance | path

Searched refs:need_mac (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlwt_redirect.c62 #define INGRESS_SEC(need_mac) ((need_mac) ? "redir_ingress" : "redir_ingress_nomac") argument
63 #define EGRESS_SEC(need_mac) ((need_mac) ? "redir_egress" : "redir_egress_nomac") argument
160 const char *target_dev, bool need_mac) in send_and_capture_test_packets() argument
198 tap_fd = open_tuntap(target_dev, need_mac); in setup_redirect_target()
217 CIDR_TO_EGRESS, BPF_OBJECT, EGRESS_SEC(need_mac)); in setup_redirect_target()
231 bool need_mac = true; in test_lwt_redirect_normal() local
233 tap_fd = setup_redirect_target(target_dev, need_mac); in test_lwt_redirect_normal()
245 bool need_mac = false; in test_lwt_redirect_normal_nomac() local
247 tap_fd = setup_redirect_target(target_dev, need_mac); in test_lwt_redirect_normal_nomac()
258 static void __test_lwt_redirect_dev_down(bool need_mac) in __test_lwt_redirect_dev_down() argument
[all …]
H A Dlwt_helpers.h40 static int open_tuntap(const char *dev_name, bool need_mac) in open_tuntap() argument
49 ifr.ifr_flags = IFF_NO_PI | (need_mac ? IFF_TAP : IFF_TUN); in open_tuntap()