Searched refs:XDP_FLAGS_REPLACE (Results 1 – 6 of 6) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_link.c | 44 err = bpf_xdp_attach(IFINDEX_LO, prog_fd1, XDP_FLAGS_REPLACE, &opts); 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() 82 err = bpf_xdp_attach(IFINDEX_LO, prog_fd2, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_link()
|
D | xdp_attach.c | 6 #define XDP_FLAGS_REPLACE (1U << 4) macro 40 err = bpf_xdp_attach(IFINDEX_LO, fd1, XDP_FLAGS_REPLACE, &opts); in test_xdp_attach() 49 err = bpf_xdp_attach(IFINDEX_LO, fd2, XDP_FLAGS_REPLACE, &opts); in test_xdp_attach()
|
/tools/include/uapi/linux/ |
D | if_link.h | 1192 #define XDP_FLAGS_REPLACE (1U << 4) macro 1197 XDP_FLAGS_MODES | XDP_FLAGS_REPLACE)
|
/tools/testing/selftests/bpf/ |
D | xdp_synproxy.c | 57 err = bpf_xdp_attach(ifindex, -1, XDP_FLAGS_REPLACE, &opts); in cleanup()
|
D | xdp_hw_metadata.c | 37 #define XDP_FLAGS (XDP_FLAGS_DRV_MODE | XDP_FLAGS_REPLACE)
|
/tools/lib/bpf/ |
D | netlink.c | 311 if (flags & XDP_FLAGS_REPLACE) { in __bpf_set_link_xdp_fd_replace() 331 flags |= XDP_FLAGS_REPLACE; in bpf_xdp_attach()
|