/Linux-v5.15/include/net/ |
D | xdp_sock_drv.h | 61 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_dma() 68 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_frame_dma() 75 static inline struct xdp_buff *xsk_buff_alloc(struct xsk_buff_pool *pool) in xsk_buff_alloc() 85 static inline void xsk_buff_free(struct xdp_buff *xdp) in xsk_buff_free() 103 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() 200 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_dma() 205 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp) in xsk_buff_xdp_get_frame_dma() 210 static inline struct xdp_buff *xsk_buff_alloc(struct xsk_buff_pool *pool) in xsk_buff_alloc() 220 static inline void xsk_buff_free(struct xdp_buff *xdp) in xsk_buff_free() 235 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()
|
D | xdp.h | 69 struct xdp_buff { struct 80 xdp_init_buff(struct xdp_buff *xdp, u32 frame_sz, struct xdp_rxq_info *rxq) in xdp_init_buff() argument 87 xdp_prepare_buff(struct xdp_buff *xdp, unsigned char *hard_start, in xdp_prepare_buff() 109 xdp_get_shared_info_from_buff(struct xdp_buff *xdp) in xdp_get_shared_info_from_buff() 166 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp); 176 void xdp_convert_frame_to_buff(struct xdp_frame *frame, struct xdp_buff *xdp) in xdp_convert_frame_to_buff() 186 int xdp_update_frame_from_buff(struct xdp_buff *xdp, in xdp_update_frame_from_buff() 215 struct xdp_frame *xdp_convert_buff_to_frame(struct xdp_buff *xdp) in xdp_convert_buff_to_frame() 235 void xdp_return_buff(struct xdp_buff *xdp); 268 xdp_set_data_meta_invalid(struct xdp_buff *xdp) in xdp_set_data_meta_invalid() [all …]
|
D | xdp_sock.h | 18 struct xdp_buff; 79 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp); 80 int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp); 85 static inline int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv() 90 static inline int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_map_redirect()
|
D | xsk_buff_pool.h | 22 struct xdp_buff xdp; 107 struct xdp_buff *xp_alloc(struct xsk_buff_pool *pool);
|
D | busy_poll.h | 156 const struct xdp_buff *xdp) in sk_mark_napi_id_once_xdp()
|
/Linux-v5.15/tools/testing/selftests/bpf/progs/ |
D | test_xdp_bpf2bpf.c | 23 struct xdp_buff { struct 45 int BPF_PROG(trace_on_entry, struct xdp_buff *xdp) in BPF_PROG() argument 64 int BPF_PROG(trace_on_exit, struct xdp_buff *xdp, int ret) in BPF_PROG()
|
/Linux-v5.15/drivers/net/ethernet/intel/i40e/ |
D | i40e_xsk.c | 27 static struct xdp_buff **i40e_rx_bi(struct i40e_ring *rx_ring, u32 idx) in i40e_rx_bi() 149 static int i40e_run_xdp_zc(struct i40e_ring *rx_ring, struct xdp_buff *xdp) in i40e_run_xdp_zc() 196 struct xdp_buff **bi, *xdp; in i40e_alloc_rx_buffers_zc() 244 struct xdp_buff *xdp) in i40e_construct_skb_zc() 268 struct xdp_buff *xdp_buff, in i40e_handle_xdp_result_zc() argument 284 xsk_buff_free(xdp_buff); in i40e_handle_xdp_result_zc() 294 skb = i40e_construct_skb_zc(rx_ring, xdp_buff); in i40e_handle_xdp_result_zc() 339 struct xdp_buff *bi; in i40e_clean_rx_irq_zc() 625 struct xdp_buff *rx_bi = *i40e_rx_bi(rx_ring, ntc); in i40e_xsk_clean_rx_ring()
|
D | i40e_txrx_common.h | 7 int i40e_xmit_xdp_tx_ring(struct xdp_buff *xdp, struct i40e_ring *xdp_ring);
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
D | rx.c | 32 struct xdp_buff *xdp = wi->umr.dma_info[page_idx].xsk; in mlx5e_xsk_skb_from_cqe_mpwrq_linear() 85 struct xdp_buff *xdp = wi->di->xsk; in mlx5e_xsk_skb_from_cqe_linear()
|
/Linux-v5.15/kernel/bpf/ |
D | devmap.c | 330 struct xdp_buff xdp; in dev_map_bpf_prog_run() 470 static inline int __xdp_enqueue(struct net_device *dev, struct xdp_buff *xdp, in __xdp_enqueue() 495 struct xdp_buff xdp; in dev_map_bpf_prog_run_skb() 523 int dev_xdp_enqueue(struct net_device *dev, struct xdp_buff *xdp, in dev_xdp_enqueue() 529 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, in dev_map_enqueue() 537 static bool is_valid_dst(struct bpf_dtab_netdev *obj, struct xdp_buff *xdp) in is_valid_dst() 589 int dev_map_enqueue_multi(struct xdp_buff *xdp, struct net_device *dev_rx, in dev_map_enqueue_multi()
|
D | cpumap.c | 177 struct xdp_buff xdp; in cpu_map_bpf_prog_run_skb() 217 struct xdp_buff xdp; in cpu_map_bpf_prog_run_xdp() 749 int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp, in cpu_map_enqueue()
|
/Linux-v5.15/net/xdp/ |
D | xsk.c | 152 static int __xsk_rcv_zc(struct xdp_sock *xs, struct xdp_buff *xdp, u32 len) in __xsk_rcv_zc() 169 static void xsk_copy_xdp(struct xdp_buff *to, struct xdp_buff *from, u32 len) in xsk_copy_xdp() 187 static int __xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_rcv() 189 struct xdp_buff *xsk_xdp; in __xsk_rcv() 232 static int xsk_rcv_check(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv_check() 251 int xsk_generic_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_generic_rcv() 265 static int xsk_rcv(struct xdp_sock *xs, struct xdp_buff *xdp) in xsk_rcv() 285 int __xsk_map_redirect(struct xdp_sock *xs, struct xdp_buff *xdp) in __xsk_map_redirect()
|
/Linux-v5.15/drivers/net/ethernet/freescale/enetc/ |
D | enetc.c | 1120 struct xdp_buff *xdp_buff, u16 size) in enetc_map_rx_buff_to_xdp() argument 1129 xdp_prepare_buff(xdp_buff, hard_start - rx_ring->buffer_offset, in enetc_map_rx_buff_to_xdp() 1132 shinfo = xdp_get_shared_info_from_buff(xdp_buff); in enetc_map_rx_buff_to_xdp() 1137 u16 size, struct xdp_buff *xdp_buff) in enetc_add_rx_buff_to_xdp() argument 1139 struct skb_shared_info *shinfo = xdp_get_shared_info_from_buff(xdp_buff); in enetc_add_rx_buff_to_xdp() 1155 int *cleaned_cnt, struct xdp_buff *xdp_buff) in enetc_build_xdp_buff() argument 1159 xdp_init_buff(xdp_buff, ENETC_RXB_TRUESIZE, &rx_ring->xdp.rxq); in enetc_build_xdp_buff() 1161 enetc_map_rx_buff_to_xdp(rx_ring, *i, xdp_buff, size); in enetc_build_xdp_buff() 1175 enetc_add_rx_buff_to_xdp(rx_ring, *i, size, xdp_buff); in enetc_build_xdp_buff() 1259 struct xdp_buff xdp_buff; in enetc_clean_rx_ring_xdp() local [all …]
|
/Linux-v5.15/drivers/net/ethernet/intel/ice/ |
D | ice_txrx_lib.h | 50 int ice_xmit_xdp_buff(struct xdp_buff *xdp, struct ice_ring *xdp_ring);
|
D | ice_txrx_lib.c | 272 int ice_xmit_xdp_buff(struct xdp_buff *xdp, struct ice_ring *xdp_ring) in ice_xmit_xdp_buff()
|
D | ice_txrx.h | 175 struct xdp_buff *xdp;
|
/Linux-v5.15/include/linux/ |
D | bpf.h | 1592 struct xdp_buff; 1598 int dev_xdp_enqueue(struct net_device *dev, struct xdp_buff *xdp, 1600 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, 1602 int dev_map_enqueue_multi(struct xdp_buff *xdp, struct net_device *dev_rx, 1611 int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp, 1758 struct xdp_buff; 1763 int dev_xdp_enqueue(struct net_device *dev, struct xdp_buff *xdp, in dev_xdp_enqueue() 1770 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, in dev_map_enqueue() 1777 int dev_map_enqueue_multi(struct xdp_buff *xdp, struct net_device *dev_rx, in dev_map_enqueue_multi() 1805 struct xdp_buff *xdp, in cpu_map_enqueue()
|
D | bpf_types.h | 12 struct xdp_md, struct xdp_buff)
|
D | filter.h | 36 struct xdp_buff; 793 u32 xdp_master_redirect(struct xdp_buff *xdp); 796 struct xdp_buff *xdp) in bpf_prog_run_xdp() 1019 struct xdp_buff *xdp, struct bpf_prog *prog); 1021 struct xdp_buff *xdp,
|
/Linux-v5.15/net/core/ |
D | xdp.c | 343 struct xdp_buff *xdp) in __xdp_return() 443 void xdp_return_buff(struct xdp_buff *xdp) in xdp_return_buff() 473 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp) in xdp_convert_zc_to_xdp_frame()
|
D | filter.c | 3787 static unsigned long xdp_get_metalen(const struct xdp_buff *xdp) in xdp_get_metalen() 3793 BPF_CALL_2(bpf_xdp_adjust_head, struct xdp_buff *, xdp, int, offset) in BPF_CALL_2() argument 3821 BPF_CALL_2(bpf_xdp_adjust_tail, struct xdp_buff *, xdp, int, offset) in BPF_CALL_2() argument 3856 BPF_CALL_2(bpf_xdp_adjust_meta, struct xdp_buff *, xdp, int, offset) in BPF_CALL_2() argument 3939 u32 xdp_master_redirect(struct xdp_buff *xdp) in xdp_master_redirect() 3961 int xdp_do_redirect(struct net_device *dev, struct xdp_buff *xdp, in xdp_do_redirect() 4021 struct xdp_buff *xdp, in xdp_do_generic_redirect_map() 4069 struct xdp_buff *xdp, struct bpf_prog *xdp_prog) in xdp_do_generic_redirect() 4548 BPF_CALL_5(bpf_xdp_event_output, struct xdp_buff *, xdp, struct bpf_map *, map, in BPF_CALL_5() argument 4574 BTF_ID_LIST_SINGLE(bpf_xdp_output_btf_ids, struct, xdp_buff) [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | xdp.h | 51 u32 *len, struct xdp_buff *xdp);
|
D | xdp.c | 60 struct mlx5e_dma_info *di, struct xdp_buff *xdp) in mlx5e_xmit_xdp_buff() 123 u32 *len, struct xdp_buff *xdp) in mlx5e_xdp_handle()
|
/Linux-v5.15/drivers/net/hyperv/ |
D | netvsc_bpf.c | 24 struct xdp_buff *xdp) in netvsc_run_xdp()
|
/Linux-v5.15/net/bpf/ |
D | test_run.c | 695 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp) in xdp_convert_md_to_buff() 741 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md) in xdp_convert_buff_to_md() 761 struct xdp_buff xdp = {}; in bpf_prog_test_run_xdp()
|