Home
last modified time | relevance | path

Searched refs:XDP_FLAGS_REPLACE (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ !
Dxdp_link.c44 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()
Dxdp_attach.c5 #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.1.9/tools/include/uapi/linux/ !
Dif_link.h1190 #define XDP_FLAGS_REPLACE (1U << 4) macro
1195 XDP_FLAGS_MODES | XDP_FLAGS_REPLACE)
/linux-6.1.9/include/uapi/linux/ !
Dif_link.h1287 #define XDP_FLAGS_REPLACE (1U << 4) macro
1292 XDP_FLAGS_MODES | XDP_FLAGS_REPLACE)
/linux-6.1.9/tools/testing/selftests/bpf/ !
Dxdp_synproxy.c57 err = bpf_xdp_attach(ifindex, -1, XDP_FLAGS_REPLACE, &opts); in cleanup()
Dxsk.c512 opts.flags = xsk->config.xdp_flags & ~(XDP_FLAGS_UPDATE_IF_NOEXIST | XDP_FLAGS_REPLACE); in xsk_create_bpf_link()
/linux-6.1.9/tools/lib/bpf/ !
Dnetlink.c266 if (flags & XDP_FLAGS_REPLACE) { in __bpf_set_link_xdp_fd_replace()
286 flags |= XDP_FLAGS_REPLACE; in bpf_xdp_attach()
/linux-6.1.9/net/core/ !
Ddev.c9191 if (old_prog && !(flags & XDP_FLAGS_REPLACE)) { in dev_xdp_attach()
9217 if ((flags & XDP_FLAGS_REPLACE) && cur_prog != old_prog) { in dev_xdp_attach()
Drtnetlink.c2993 if (xdp_flags & XDP_FLAGS_REPLACE) { in do_setlink()