Home
last modified time | relevance | path

Searched refs:XDP_FLAGS_SKB_MODE (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_cpumap_attach.c27 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 Dxdp_info.c24 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 Dxdp_devmap_attach.c29 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 Dxdp_adjust_tail_user.c116 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
131 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
H A Dxdp_fwd_user.c138 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
152 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
H A Dxdp_tx_iptunnel_user.c227 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
242 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
H A Dxdp_sample_user.c1296 xdp_flags |= generic ? XDP_FLAGS_SKB_MODE : XDP_FLAGS_DRV_MODE; in sample_install_xdp()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxdp_redirect_multi.c99 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
116 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) { in main()
H A Dxdping.c89 __u32 mode_flags = XDP_FLAGS_DRV_MODE | XDP_FLAGS_SKB_MODE; in main()
134 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
H A Dxsk.c291 else if (mode == XDP_FLAGS_SKB_MODE) in xsk_is_in_mode()
H A Dxskxceiver.c171 return (mode == TEST_MODE_SKB) ? XDP_FLAGS_SKB_MODE : XDP_FLAGS_DRV_MODE; in mode_to_xdp_flags()
/openbmc/qemu/net/
H A Daf-xdp.c365 ? 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 Dif_link.h1189 #define XDP_FLAGS_SKB_MODE (1U << 1) macro
1193 #define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | \
/openbmc/linux/include/uapi/linux/
H A Dif_link.h1296 #define XDP_FLAGS_SKB_MODE (1U << 1) macro
1300 #define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | \
/openbmc/linux/tools/lib/bpf/
H A Dnetlink.c453 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 Dnet.c636 flags |= XDP_FLAGS_SKB_MODE; in do_attach_detach_xdp()
/openbmc/linux/net/core/
H A Ddev.c9125 if (flags & XDP_FLAGS_SKB_MODE) in dev_xdp_mode()