Searched refs:XDP_FLAGS_DRV_MODE (Results 1 – 20 of 20) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_do_redirect.c | 157 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()
|
D | xdp_devmap_attach.c | 184 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()
|
D | xdp_info.c | 59 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()
|
D | xdp_bonding.c | 510 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()
|
D | xdp_metadata.c | 29 #define XDP_FLAGS XDP_FLAGS_DRV_MODE
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | xdping.c | 89 __u32 mode_flags = XDP_FLAGS_DRV_MODE | XDP_FLAGS_SKB_MODE; in main() 127 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
|
D | xdp_features.c | 362 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()
|
D | xdp_redirect_multi.c | 117 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
|
D | xskxceiver.c | 180 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()
|
D | xdp_hw_metadata.c | 46 #define XDP_FLAGS (XDP_FLAGS_DRV_MODE | XDP_FLAGS_REPLACE)
|
D | xsk.c | 292 if (mode == XDP_FLAGS_DRV_MODE) in xsk_is_in_mode()
|
/linux-6.12.1/samples/bpf/ |
D | xdp_adjust_tail_user.c | 132 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
|
D | xdp_fwd_user.c | 153 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
|
D | xdp_tx_iptunnel_user.c | 243 xdp_flags |= XDP_FLAGS_DRV_MODE; in main()
|
D | xdp_sample_user.c | 1296 xdp_flags |= generic ? XDP_FLAGS_SKB_MODE : XDP_FLAGS_DRV_MODE; in sample_install_xdp()
|
/linux-6.12.1/tools/include/uapi/linux/ |
D | if_link.h | 1322 #define XDP_FLAGS_DRV_MODE (1U << 2) macro 1326 XDP_FLAGS_DRV_MODE | \
|
/linux-6.12.1/include/uapi/linux/ |
D | if_link.h | 1856 #define XDP_FLAGS_DRV_MODE (1U << 2) macro 1860 XDP_FLAGS_DRV_MODE | \
|
/linux-6.12.1/tools/lib/bpf/ |
D | netlink.c | 453 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/ |
D | net.c | 647 flags |= XDP_FLAGS_DRV_MODE; in do_attach_detach_xdp()
|
/linux-6.12.1/net/core/ |
D | dev.c | 9331 if (flags & XDP_FLAGS_DRV_MODE) in dev_xdp_mode()
|