Searched refs:XDP_FLAGS_REPLACE (Results 1 – 9 of 9) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A 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()
|
A D | xdp_attach.c | 5 #define XDP_FLAGS_REPLACE (1U << 4) macro 40 err = bpf_xdp_attach(IFINDEX_LO, fd1, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_attach() 49 err = bpf_xdp_attach(IFINDEX_LO, fd2, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_attach()
|
/linux-6.3-rc2/tools/include/uapi/linux/ |
A D | if_link.h | 1191 #define XDP_FLAGS_REPLACE (1U << 4) macro 1196 XDP_FLAGS_MODES | XDP_FLAGS_REPLACE)
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | if_link.h | 1295 #define XDP_FLAGS_REPLACE (1U << 4) macro 1300 XDP_FLAGS_MODES | XDP_FLAGS_REPLACE)
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | xdp_synproxy.c | 57 err = bpf_xdp_attach(ifindex, -1, XDP_FLAGS_REPLACE, &opts); in cleanup()
|
A D | xdp_hw_metadata.c | 36 #define XDP_FLAGS (XDP_FLAGS_DRV_MODE | XDP_FLAGS_REPLACE)
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | netlink.c | 310 if (flags & XDP_FLAGS_REPLACE) { in __bpf_set_link_xdp_fd_replace() 330 flags |= XDP_FLAGS_REPLACE; in bpf_xdp_attach()
|
/linux-6.3-rc2/net/core/ |
A D | dev.c | 9176 if (old_prog && !(flags & XDP_FLAGS_REPLACE)) { in dev_xdp_attach() 9202 if ((flags & XDP_FLAGS_REPLACE) && cur_prog != old_prog) { in dev_xdp_attach()
|
A D | rtnetlink.c | 3061 if (xdp_flags & XDP_FLAGS_REPLACE) { in do_setlink()
|
Completed in 58 milliseconds