Lines Matching refs:IFINDEX_LO
7 #define IFINDEX_LO 1 macro
44 err = bpf_xdp_attach(IFINDEX_LO, prog_fd1, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_link()
49 err = bpf_xdp_query_id(IFINDEX_LO, 0, &id0); in serial_test_xdp_link()
54 link = bpf_program__attach_xdp(skel1->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link()
59 bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_link()
65 err = bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_link()
70 link = bpf_program__attach_xdp(skel1->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link()
76 err = bpf_xdp_query_id(IFINDEX_LO, 0, &id0); in serial_test_xdp_link()
82 err = bpf_xdp_attach(IFINDEX_LO, prog_fd2, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_link()
87 err = bpf_xdp_attach(IFINDEX_LO, prog_fd2, 0, NULL); in serial_test_xdp_link()
92 err = bpf_xdp_detach(IFINDEX_LO, 0, NULL); in serial_test_xdp_link()
97 link = bpf_program__attach_xdp(skel2->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link()
107 link = bpf_program__attach_xdp(skel2->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link()
112 err = bpf_xdp_query_id(IFINDEX_LO, 0, &id0); in serial_test_xdp_link()
129 ASSERT_EQ(link_info.xdp.ifindex, IFINDEX_LO, "link_ifindex"); in serial_test_xdp_link()