Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A Dxdp_attach.c6 #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()
/openbmc/linux/tools/include/uapi/linux/
H A Dif_link.h1192 #define XDP_FLAGS_REPLACE (1U << 4) macro
1197 XDP_FLAGS_MODES | XDP_FLAGS_REPLACE)
/openbmc/linux/include/uapi/linux/
H A Dif_link.h1299 #define XDP_FLAGS_REPLACE (1U << 4) macro
1304 XDP_FLAGS_MODES | XDP_FLAGS_REPLACE)
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxdp_synproxy.c57 err = bpf_xdp_attach(ifindex, -1, XDP_FLAGS_REPLACE, &opts); in cleanup()
H A Dxdp_hw_metadata.c37 #define XDP_FLAGS (XDP_FLAGS_DRV_MODE | XDP_FLAGS_REPLACE)
/openbmc/linux/tools/lib/bpf/
H A Dnetlink.c311 if (flags & XDP_FLAGS_REPLACE) { in __bpf_set_link_xdp_fd_replace()
331 flags |= XDP_FLAGS_REPLACE; in bpf_xdp_attach()
/openbmc/linux/net/core/
H A Ddev.c9291 if (old_prog && !(flags & XDP_FLAGS_REPLACE)) { in dev_xdp_attach()
9317 if ((flags & XDP_FLAGS_REPLACE) && cur_prog != old_prog) { in dev_xdp_attach()
H A Drtnetlink.c3122 if (xdp_flags & XDP_FLAGS_REPLACE) { in do_setlink()