Searched refs:XDP_FLAGS_SKB_MODE (Results 1 – 17 of 17) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_cpumap_attach.c | 27 err = bpf_xdp_attach(IFINDEX_LO, prog_fd, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_cpumap_helpers() 31 err = bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_cpumap_helpers() 49 err = bpf_xdp_attach(IFINDEX_LO, prog_fd, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_cpumap_helpers() 51 bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_cpumap_helpers()
|
H A D | xdp_info.c | 24 err = bpf_xdp_query_id(IFINDEX_LO, XDP_FLAGS_SKB_MODE, &prog_id); in serial_test_xdp_info() 41 err = bpf_xdp_attach(IFINDEX_LO, prog_fd, XDP_FLAGS_SKB_MODE, NULL); in serial_test_xdp_info() 53 err = bpf_xdp_query_id(IFINDEX_LO, XDP_FLAGS_SKB_MODE, &prog_id); in serial_test_xdp_info()
|
H A D | xdp_devmap_attach.c | 29 err = bpf_xdp_attach(IFINDEX_LO, dm_fd, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_devmap_helpers() 33 err = bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_devmap_helpers() 51 err = bpf_xdp_attach(IFINDEX_LO, dm_fd, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_devmap_helpers() 53 bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_devmap_helpers()
|
/openbmc/linux/samples/bpf/ |
H A D | xdp_adjust_tail_user.c | 116 xdp_flags |= XDP_FLAGS_SKB_MODE; in main() 131 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
|
H A D | xdp_fwd_user.c | 138 xdp_flags |= XDP_FLAGS_SKB_MODE; in main() 152 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
|
H A D | xdp_tx_iptunnel_user.c | 227 xdp_flags |= XDP_FLAGS_SKB_MODE; in main() 242 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
|
H A D | xdp_sample_user.c | 1296 xdp_flags |= generic ? XDP_FLAGS_SKB_MODE : XDP_FLAGS_DRV_MODE; in sample_install_xdp()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xdp_redirect_multi.c | 99 xdp_flags |= XDP_FLAGS_SKB_MODE; in main() 116 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) { in main()
|
H A D | xdping.c | 89 __u32 mode_flags = XDP_FLAGS_DRV_MODE | XDP_FLAGS_SKB_MODE; in main() 134 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
|
H A D | xsk.c | 291 else if (mode == XDP_FLAGS_SKB_MODE) in xsk_is_in_mode()
|
H A D | xskxceiver.c | 171 return (mode == TEST_MODE_SKB) ? XDP_FLAGS_SKB_MODE : XDP_FLAGS_DRV_MODE; in mode_to_xdp_flags()
|
/openbmc/qemu/net/ |
H A D | af-xdp.c | 365 ? XDP_FLAGS_DRV_MODE : XDP_FLAGS_SKB_MODE; in af_xdp_socket_create() 378 cfg.xdp_flags |= XDP_FLAGS_SKB_MODE; in af_xdp_socket_create()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | if_link.h | 1189 #define XDP_FLAGS_SKB_MODE (1U << 1) macro 1193 #define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | \
|
/openbmc/linux/include/uapi/linux/ |
H A D | if_link.h | 1296 #define XDP_FLAGS_SKB_MODE (1U << 1) macro 1300 #define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | \
|
/openbmc/linux/tools/lib/bpf/ |
H A D | netlink.c | 453 xdp_flags &= XDP_FLAGS_SKB_MODE | XDP_FLAGS_DRV_MODE | XDP_FLAGS_HW_MODE; in bpf_xdp_query() 523 else if (flags & XDP_FLAGS_SKB_MODE) in bpf_xdp_query_id()
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | net.c | 636 flags |= XDP_FLAGS_SKB_MODE; in do_attach_detach_xdp()
|
/openbmc/linux/net/core/ |
H A D | dev.c | 9125 if (flags & XDP_FLAGS_SKB_MODE) in dev_xdp_mode()
|