Searched refs:xdp_flags (Results 1 – 5 of 5) sorted by relevance
/tools/testing/selftests/bpf/ |
D | xdp_redirect_multi.c | 25 static __u32 xdp_flags = XDP_FLAGS_UPDATE_IF_NOEXIST; variable 34 if (bpf_xdp_query_id(ifaces[i], xdp_flags, &prog_id)) { in int_exit() 39 bpf_xdp_detach(ifaces[i], xdp_flags, NULL); in int_exit() 99 xdp_flags |= XDP_FLAGS_SKB_MODE; in main() 105 xdp_flags &= ~XDP_FLAGS_UPDATE_IF_NOEXIST; in main() 116 if (!(xdp_flags & XDP_FLAGS_SKB_MODE)) { in main() 117 xdp_flags |= XDP_FLAGS_DRV_MODE; in main() 212 ret = bpf_xdp_attach(ifindex, prog_fd, xdp_flags, NULL); in main()
|
D | xdping.c | 27 static __u32 xdp_flags = XDP_FLAGS_UPDATE_IF_NOEXIST; variable 31 bpf_xdp_detach(ifindex, xdp_flags, NULL); in cleanup() 127 xdp_flags |= XDP_FLAGS_DRV_MODE; in main() 134 xdp_flags |= XDP_FLAGS_SKB_MODE; in main() 151 if ((xdp_flags & mode_flags) == mode_flags) { in main() 202 if (bpf_xdp_attach(ifindex, prog_fd, xdp_flags, NULL) < 0) { in main()
|
D | xsk.h | 205 int xsk_attach_xdp_program(struct bpf_program *prog, int ifindex, u32 xdp_flags); 206 void xsk_detach_xdp_program(int ifindex, u32 xdp_flags);
|
D | xsk.c | 423 int xsk_attach_xdp_program(struct bpf_program *prog, int ifindex, u32 xdp_flags) in xsk_attach_xdp_program() argument 428 return bpf_xdp_attach(ifindex, prog_fd, xdp_flags, NULL); in xsk_attach_xdp_program() 431 void xsk_detach_xdp_program(int ifindex, u32 xdp_flags) in xsk_detach_xdp_program() argument 433 bpf_xdp_detach(ifindex, xdp_flags, NULL); in xsk_detach_xdp_program()
|
/tools/lib/bpf/ |
D | netlink.c | 431 int bpf_xdp_query(int ifindex, int xdp_flags, struct bpf_xdp_query_opts *opts) in bpf_xdp_query() argument 449 if (xdp_flags & ~XDP_FLAGS_MASK) in bpf_xdp_query() 453 xdp_flags &= XDP_FLAGS_SKB_MODE | XDP_FLAGS_DRV_MODE | XDP_FLAGS_HW_MODE; in bpf_xdp_query() 454 if (xdp_flags & (xdp_flags - 1)) in bpf_xdp_query() 458 xdp_id.flags = xdp_flags; in bpf_xdp_query()
|