Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dxdp_info.c23 err = bpf_get_link_xdp_id(IFINDEX_LO, &prog_id, XDP_FLAGS_SKB_MODE); in test_xdp_info()
40 err = bpf_set_link_xdp_fd(IFINDEX_LO, prog_fd, XDP_FLAGS_SKB_MODE); in test_xdp_info()
52 err = bpf_get_link_xdp_id(IFINDEX_LO, &prog_id, XDP_FLAGS_SKB_MODE); in test_xdp_info()
Dxdp_cpumap_attach.c31 err = bpf_set_link_xdp_fd(IFINDEX_LO, prog_fd, XDP_FLAGS_SKB_MODE); in test_xdp_with_cpumap_helpers()
52 err = bpf_set_link_xdp_fd(IFINDEX_LO, prog_fd, XDP_FLAGS_SKB_MODE); in test_xdp_with_cpumap_helpers()
Dxdp_devmap_attach.c33 err = bpf_set_link_xdp_fd(IFINDEX_LO, dm_fd, XDP_FLAGS_SKB_MODE); in test_xdp_with_devmap_helpers()
54 err = bpf_set_link_xdp_fd(IFINDEX_LO, dm_fd, XDP_FLAGS_SKB_MODE); in test_xdp_with_devmap_helpers()
/Linux-v5.10/samples/bpf/
Dxdp_fwd_user.c94 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
108 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
Dxdp1_user.c98 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
112 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
Dxdp_adjust_tail_user.c120 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
135 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
Dxdp_sample_pkts_user.c130 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
138 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
Dxdp_redirect_map_user.c116 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
130 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
Dxdp_redirect_user.c117 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
131 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
Dxdp_tx_iptunnel_user.c231 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
246 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
Dxdp_rxq_info_user.c522 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
548 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
Dxdp_router_ipv4_user.c650 flags |= XDP_FLAGS_SKB_MODE; in main()
665 if (!(flags & XDP_FLAGS_SKB_MODE)) in main()
Dxdpsock_user.c177 if (opt_xdp_flags & XDP_FLAGS_SKB_MODE) in print_benchmark()
992 opt_xdp_flags |= XDP_FLAGS_SKB_MODE; in parse_command_line()
1072 if (!(opt_xdp_flags & XDP_FLAGS_SKB_MODE)) in parse_command_line()
Dxdp_redirect_cpu_user.c862 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
915 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) in main()
/Linux-v5.10/tools/testing/selftests/bpf/
Dxdping.c89 __u32 mode_flags = XDP_FLAGS_DRV_MODE | XDP_FLAGS_SKB_MODE; in main()
135 xdp_flags |= XDP_FLAGS_SKB_MODE; in main()
/Linux-v5.10/tools/lib/bpf/
Dnetlink.c300 flags &= (XDP_FLAGS_SKB_MODE | XDP_FLAGS_DRV_MODE | XDP_FLAGS_HW_MODE); in bpf_get_link_xdp_info()
334 if (flags & XDP_FLAGS_SKB_MODE) in get_xdp_id()
/Linux-v5.10/include/uapi/linux/
Dif_link.h1165 #define XDP_FLAGS_SKB_MODE (1U << 1) macro
1169 #define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | \
/Linux-v5.10/tools/include/uapi/linux/
Dif_link.h964 #define XDP_FLAGS_SKB_MODE (1U << 1) macro
968 #define XDP_FLAGS_MODES (XDP_FLAGS_SKB_MODE | \
/Linux-v5.10/tools/bpf/bpftool/
Dnet.c549 flags |= XDP_FLAGS_SKB_MODE; in do_attach_detach_xdp()
/Linux-v5.10/net/core/
Ddev.c8886 if (flags & XDP_FLAGS_SKB_MODE) in dev_xdp_mode()