Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dxdp_do_redirect.c157 err = bpf_xdp_query(ifindex_src, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect()
167 err = bpf_xdp_query(ifindex_dst, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect()
181 err = bpf_xdp_query(ifindex_src, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect()
192 err = bpf_xdp_query(ifindex_dst, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect()
Dxdp_devmap_attach.c184 err = bpf_xdp_attach(val.ifindex, dm_fd_redir, XDP_FLAGS_DRV_MODE, NULL); in test_xdp_with_devmap_helpers_veth()
204 err = bpf_xdp_attach(ifindex_dst, dm_fd, XDP_FLAGS_DRV_MODE, NULL); in test_xdp_with_devmap_helpers_veth()
221 err = bpf_xdp_detach(val.ifindex, XDP_FLAGS_DRV_MODE, NULL); in test_xdp_with_devmap_helpers_veth()
224 err = bpf_xdp_detach(ifindex_dst, XDP_FLAGS_DRV_MODE, NULL); in test_xdp_with_devmap_helpers_veth()
Dxdp_info.c59 err = bpf_xdp_query_id(IFINDEX_LO, XDP_FLAGS_DRV_MODE, &prog_id); in serial_test_xdp_info()
67 err = bpf_xdp_query(IFINDEX_LO, XDP_FLAGS_DRV_MODE, &opts); in serial_test_xdp_info()
Dxdp_bonding.c510 err = bpf_xdp_query(bond_idx, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_bonding_features()
533 err = bpf_xdp_query(bond_idx, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_bonding_features()
553 err = bpf_xdp_query(bond_idx, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_bonding_features()
568 err = bpf_xdp_query(bond_idx, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_bonding_features()
585 err = bpf_xdp_query(bond_idx, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_bonding_features()
600 err = bpf_xdp_query(bond_idx, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_bonding_features()
Dxdp_metadata.c29 #define XDP_FLAGS XDP_FLAGS_DRV_MODE
/linux-6.12.1/tools/testing/selftests/bpf/
Dxdping.c89 __u32 mode_flags = XDP_FLAGS_DRV_MODE | XDP_FLAGS_SKB_MODE; in main()
127 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
Dxdp_features.c362 int flags = XDP_FLAGS_UPDATE_IF_NOEXIST | XDP_FLAGS_DRV_MODE; in dut_run()
434 err = bpf_xdp_query(env.ifindex, XDP_FLAGS_DRV_MODE, in dut_run()
575 int flags = XDP_FLAGS_UPDATE_IF_NOEXIST | XDP_FLAGS_DRV_MODE; in tester_run()
Dxdp_redirect_multi.c117 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
Dxskxceiver.c180 return (mode == TEST_MODE_SKB) ? XDP_FLAGS_SKB_MODE : XDP_FLAGS_DRV_MODE; in mode_to_xdp_flags()
1825 if (!xsk_is_in_mode(ifobj->ifindex, XDP_FLAGS_DRV_MODE)) { in xsk_reattach_xdp()
2366 err = bpf_xdp_query(ifobj->ifindex, XDP_FLAGS_DRV_MODE, &query_opts); in init_iface()
2564 int flags = XDP_FLAGS_DRV_MODE; in is_xdp_supported()
Dxdp_hw_metadata.c46 #define XDP_FLAGS (XDP_FLAGS_DRV_MODE | XDP_FLAGS_REPLACE)
Dxsk.c292 if (mode == XDP_FLAGS_DRV_MODE) in xsk_is_in_mode()
/linux-6.12.1/samples/bpf/
Dxdp_adjust_tail_user.c132 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
Dxdp_fwd_user.c153 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
Dxdp_tx_iptunnel_user.c243 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
Dxdp_sample_user.c1296 xdp_flags |= generic ? XDP_FLAGS_SKB_MODE : XDP_FLAGS_DRV_MODE; in sample_install_xdp()
/linux-6.12.1/tools/include/uapi/linux/
Dif_link.h1322 #define XDP_FLAGS_DRV_MODE (1U << 2) macro
1326 XDP_FLAGS_DRV_MODE | \
/linux-6.12.1/include/uapi/linux/
Dif_link.h1856 #define XDP_FLAGS_DRV_MODE (1U << 2) macro
1860 XDP_FLAGS_DRV_MODE | \
/linux-6.12.1/tools/lib/bpf/
Dnetlink.c453 xdp_flags &= XDP_FLAGS_SKB_MODE | XDP_FLAGS_DRV_MODE | XDP_FLAGS_HW_MODE; in bpf_xdp_query()
519 else if (flags & XDP_FLAGS_DRV_MODE) in bpf_xdp_query_id()
/linux-6.12.1/tools/bpf/bpftool/
Dnet.c647 flags |= XDP_FLAGS_DRV_MODE; in do_attach_detach_xdp()
/linux-6.12.1/net/core/
Ddev.c9331 if (flags & XDP_FLAGS_DRV_MODE) in dev_xdp_mode()