Home
last modified time | relevance | path

Searched defs:xdp (Results 1 – 25 of 86) sorted by relevance

1234

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dxdp_redirect_map.c14 int xdp_redirect_map_0(struct xdp_md *xdp) in xdp_redirect_map_0()
20 int xdp_redirect_map_1(struct xdp_md *xdp) in xdp_redirect_map_1()
26 int xdp_redirect_map_2(struct xdp_md *xdp) in xdp_redirect_map_2()
Dtest_xdp_redirect.c18 int xdp_redirect_to_111(struct xdp_md *xdp) in xdp_redirect_to_111()
23 int xdp_redirect_to_222(struct xdp_md *xdp) in xdp_redirect_to_222()
Dtest_xdp.c80 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
153 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
214 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
Dtest_xdp_loop.c76 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
149 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
210 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
Dtest_xdp_bpf2bpf.c45 int BPF_PROG(trace_on_entry, struct xdp_buff *xdp) in BPF_PROG()
64 int BPF_PROG(trace_on_exit, struct xdp_buff *xdp, int ret) in BPF_PROG()
Dxdp_tx.c7 int xdp_tx(struct xdp_md *xdp) in xdp_tx()
Dtest_xdp_link.c9 int xdp_handler(struct xdp_md *xdp) in xdp_handler()
Dtest_xdp_adjust_tail_shrink.c15 int _xdp_adjust_tail_shrink(struct xdp_md *xdp) in _xdp_adjust_tail_shrink()
Dtest_xdp_adjust_tail_grow.c6 int _xdp_adjust_tail_grow(struct xdp_md *xdp) in _xdp_adjust_tail_grow()
Dtest_xdp_noinline.c278 bool encap_v6(struct xdp_md *xdp, struct ctl_value *cval, in encap_v6()
321 bool encap_v4(struct xdp_md *xdp, struct ctl_value *cval, in encap_v4()
375 bool decap_v6(struct xdp_md *xdp, void **data, void **data_end, bool inner_v4) in decap_v6()
396 bool decap_v4(struct xdp_md *xdp, void **data, void **data_end) in decap_v4()
692 bool is_ipv6, struct xdp_md *xdp) in process_packet()
/kernel/linux/linux-5.10/include/net/
Dxdp_sock_drv.h60 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_dma()
67 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_frame_dma()
84 static inline void xsk_buff_free(struct xdp_buff *xdp) in xsk_buff_free()
102 static inline void xsk_buff_dma_sync_for_cpu(struct xdp_buff *xdp, struct xsk_buff_pool *pool) in xsk_buff_dma_sync_for_cpu()
193 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_dma()
198 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_frame_dma()
213 static inline void xsk_buff_free(struct xdp_buff *xdp) in xsk_buff_free()
228 static inline void xsk_buff_dma_sync_for_cpu(struct xdp_buff *xdp, struct xsk_buff_pool *pool) in xsk_buff_dma_sync_for_cpu()
Dxdp.h84 #define xdp_data_hard_end(xdp) \ argument
89 xdp_get_shared_info_from_buff(struct xdp_buff *xdp) in xdp_get_shared_info_from_buff()
137 void xdp_convert_frame_to_buff(struct xdp_frame *frame, struct xdp_buff *xdp) in xdp_convert_frame_to_buff()
147 int xdp_update_frame_from_buff(struct xdp_buff *xdp, in xdp_update_frame_from_buff()
176 struct xdp_frame *xdp_convert_buff_to_frame(struct xdp_buff *xdp) in xdp_convert_buff_to_frame()
226 xdp_set_data_meta_invalid(struct xdp_buff *xdp) in xdp_set_data_meta_invalid()
232 xdp_data_meta_unsupported(const struct xdp_buff *xdp) in xdp_data_meta_unsupported()
Dxdp_sock.h98 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
103 static inline int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_map_redirect()
/kernel/linux/linux-5.10/include/trace/events/
Dxdp.h148 #define _trace_xdp_redirect(dev, xdp, to) \ argument
151 #define _trace_xdp_redirect_err(dev, xdp, to, err) \ argument
154 #define _trace_xdp_redirect_map(dev, xdp, to, map, index) \ argument
157 #define _trace_xdp_redirect_map_err(dev, xdp, to, map, index, err) \ argument
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_tcp_check_syncookie_user.c81 static int get_map_fd_by_prog_id(int prog_id, bool *xdp) in get_map_fd_by_prog_id()
119 static int run_test(int server_fd, int results_fd, bool xdp) in run_test()
210 bool xdp; in main() local
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_adjust_tail_kern.c70 static __always_inline int send_icmp4_too_big(struct xdp_md *xdp) in send_icmp4_too_big()
120 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
137 int _xdp_icmp(struct xdp_md *xdp) in _xdp_icmp()
Dxdp_tx_iptunnel_kern.c77 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
152 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
216 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.c32 struct xdp_buff *xdp = wi->umr.dma_info[page_idx].xsk; in mlx5e_xsk_skb_from_cqe_mpwrq_linear() local
85 struct xdp_buff *xdp = wi->di->xsk; in mlx5e_xsk_skb_from_cqe_linear() local
/kernel/linux/linux-5.10/include/linux/
Dif_tun.h34 static inline void *tun_xdp_to_ptr(struct xdp_frame *xdp) in tun_xdp_to_ptr()
60 static inline void *tun_xdp_to_ptr(struct xdp_frame *xdp) in tun_xdp_to_ptr()
/kernel/linux/linux-5.10/drivers/net/hyperv/
Dnetvsc_bpf.c24 struct xdp_buff *xdp) in netvsc_run_xdp()
137 struct netdev_bpf xdp; in netvsc_vf_setxdp() local
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c118 struct xdp_buff xdp; in bnxt_rx_xdp() local
236 struct xdp_frame *xdp = frames[i]; in bnxt_xdp_xmit() local
324 int bnxt_xdp(struct net_device *dev, struct netdev_bpf *xdp) in bnxt_xdp()
/kernel/linux/linux-5.10/net/core/
Dxdp.c341 struct xdp_buff *xdp) in __xdp_return()
387 void xdp_return_buff(struct xdp_buff *xdp) in xdp_return_buff()
417 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp) in xdp_convert_zc_to_xdp_frame()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c199 static int i40e_run_xdp_zc(struct i40e_ring *rx_ring, struct xdp_buff *xdp) in i40e_run_xdp_zc()
249 struct xdp_buff **bi, *xdp; in i40e_alloc_rx_buffers_zc() local
299 struct xdp_buff *xdp) in i40e_construct_skb_zc()
/kernel/linux/linux-5.10/net/xdp/
Dxsk.c151 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv_zc()
186 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len, in __xsk_rcv()
232 static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp, in xsk_rcv()
257 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv()
268 int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_map_redirect()
/kernel/linux/linux-5.10/kernel/bpf/
Ddevmap.c446 static inline int __xdp_enqueue(struct net_device *dev, struct xdp_buff *xdp, in __xdp_enqueue()
468 struct xdp_buff *xdp, in dev_map_run_prog()
495 int dev_xdp_enqueue(struct net_device *dev, struct xdp_buff *xdp, in dev_xdp_enqueue()
501 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, in dev_map_enqueue()

1234