Home
last modified time | relevance | path

Searched refs:xdp_frame (Results 1 – 25 of 79) sorted by relevance

1234

/Linux-v6.1/include/net/
Dxdp.h163 struct xdp_frame { struct
177 static __always_inline bool xdp_frame_has_frags(struct xdp_frame *frame) in xdp_frame_has_frags() argument
182 static __always_inline bool xdp_frame_is_frag_pfmemalloc(struct xdp_frame *frame) in xdp_frame_is_frag_pfmemalloc()
201 xdp_get_shared_info_from_frame(struct xdp_frame *frame) in xdp_get_shared_info_from_frame()
216 static inline void xdp_scrub_frame(struct xdp_frame *frame) in xdp_scrub_frame()
239 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp);
240 struct sk_buff *__xdp_build_skb_from_frame(struct xdp_frame *xdpf,
243 struct sk_buff *xdp_build_skb_from_frame(struct xdp_frame *xdpf,
246 struct xdp_frame *xdpf_clone(struct xdp_frame *xdpf);
249 void xdp_convert_frame_to_buff(struct xdp_frame *frame, struct xdp_buff *xdp) in xdp_convert_frame_to_buff()
[all …]
/Linux-v6.1/include/linux/
Dif_tun.h34 static inline void *tun_xdp_to_ptr(struct xdp_frame *xdp) in tun_xdp_to_ptr()
38 static inline struct xdp_frame *tun_ptr_to_xdp(void *ptr) in tun_ptr_to_xdp()
60 static inline void *tun_xdp_to_ptr(struct xdp_frame *xdp) in tun_xdp_to_ptr()
64 static inline struct xdp_frame *tun_ptr_to_xdp(void *ptr) in tun_ptr_to_xdp()
Dbpf.h1961 struct xdp_frame;
1967 int dev_xdp_enqueue(struct net_device *dev, struct xdp_frame *xdpf,
1969 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_frame *xdpf,
1971 int dev_map_enqueue_multi(struct xdp_frame *xdpf, struct net_device *dev_rx,
1980 int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_frame *xdpf,
2179 struct xdp_frame;
2184 int dev_xdp_enqueue(struct net_device *dev, struct xdp_frame *xdpf, in dev_xdp_enqueue()
2191 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_frame *xdpf, in dev_map_enqueue()
2198 int dev_map_enqueue_multi(struct xdp_frame *xdpf, struct net_device *dev_rx, in dev_map_enqueue_multi()
2226 struct xdp_frame *xdpf, in cpu_map_enqueue()
/Linux-v6.1/net/core/
Dxdp.c408 void xdp_return_frame(struct xdp_frame *xdpf) in xdp_return_frame()
427 void xdp_return_frame_rx_napi(struct xdp_frame *xdpf) in xdp_return_frame_rx_napi()
470 void xdp_return_frame_bulk(struct xdp_frame *xdpf, in xdp_return_frame_bulk()
557 struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp) in xdp_convert_zc_to_xdp_frame()
561 struct xdp_frame *xdpf; in xdp_convert_zc_to_xdp_frame()
614 struct sk_buff *__xdp_build_skb_from_frame(struct xdp_frame *xdpf, in __xdp_build_skb_from_frame()
670 struct sk_buff *xdp_build_skb_from_frame(struct xdp_frame *xdpf, in xdp_build_skb_from_frame()
685 struct xdp_frame *xdpf_clone(struct xdp_frame *xdpf) in xdpf_clone()
688 struct xdp_frame *nxdpf; in xdpf_clone()
/Linux-v6.1/kernel/bpf/
Ddevmap.c57 struct xdp_frame *q[DEV_MAP_BULK_SIZE];
327 struct xdp_frame **frames, int n, in dev_map_bpf_prog_run()
335 struct xdp_frame *xdpf = frames[i]; in dev_map_bpf_prog_run()
377 struct xdp_frame *xdpf = bq->q[i]; in bq_xmit_all()
446 static void bq_enqueue(struct net_device *dev, struct xdp_frame *xdpf, in bq_enqueue()
471 static inline int __xdp_enqueue(struct net_device *dev, struct xdp_frame *xdpf, in __xdp_enqueue()
519 int dev_xdp_enqueue(struct net_device *dev, struct xdp_frame *xdpf, in dev_xdp_enqueue()
525 int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_frame *xdpf, in dev_map_enqueue()
533 static bool is_valid_dst(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf) in is_valid_dst()
547 struct xdp_frame *xdpf) in dev_map_enqueue_clone()
[all …]
Dcpumap.c153 struct xdp_frame *xdpf; in __cpu_map_ring_cleanup()
225 struct xdp_frame *xdpf = frames[i]; in cpu_map_bpf_prog_run_xdp()
375 struct xdp_frame *xdpf = frames[i]; in cpu_map_kthread_run()
706 struct xdp_frame *xdpf = bq->q[i]; in bq_flush_to_queue()
728 static void bq_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_frame *xdpf) in bq_enqueue()
751 int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_frame *xdpf, in cpu_map_enqueue()
/Linux-v6.1/drivers/net/ethernet/fungible/funeth/
Dfuneth_txrx.h100 struct xdp_frame *xdpf; /* associated XDP frame (XDP path) */
249 bool fun_xdp_tx(struct funeth_txq *q, struct xdp_frame *xdpf);
251 struct xdp_frame **frames, u32 flags);
/Linux-v6.1/drivers/net/ethernet/ti/
Dcpsw_priv.h408 #define CPSW_XMETA_OFFSET ALIGN(sizeof(struct xdp_frame), sizeof(long))
426 static inline void *cpsw_xdpf_to_handle(struct xdp_frame *xdpf) in cpsw_xdpf_to_handle()
431 static inline struct xdp_frame *cpsw_handle_to_xdpf(void *handle) in cpsw_handle_to_xdpf()
433 return (struct xdp_frame *)((unsigned long)handle & ~BIT(0)); in cpsw_handle_to_xdpf()
447 int cpsw_xdp_tx_frame(struct cpsw_priv *priv, struct xdp_frame *xdpf,
/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.h58 struct xdp_frame *xdpf;
203 struct xdp_frame **frames, u32 flags);
/Linux-v6.1/drivers/net/ethernet/freescale/enetc/
Denetc.c42 static struct xdp_frame *
46 return tx_swbd->xdp_frame; in enetc_tx_swbd_get_xdp_frame()
71 struct xdp_frame *xdp_frame = enetc_tx_swbd_get_xdp_frame(tx_swbd); in enetc_free_tx_frame() local
77 if (xdp_frame) { in enetc_free_tx_frame()
78 xdp_return_frame(tx_swbd->xdp_frame); in enetc_free_tx_frame()
79 tx_swbd->xdp_frame = NULL; in enetc_free_tx_frame()
812 struct xdp_frame *xdp_frame = enetc_tx_swbd_get_xdp_frame(tx_swbd); in enetc_clean_tx_ring() local
836 if (xdp_frame) { in enetc_clean_tx_ring()
837 xdp_return_frame(xdp_frame); in enetc_clean_tx_ring()
1283 struct xdp_frame *xdp_frame) in enetc_xdp_frame_to_xdp_tx_swbd() argument
[all …]
Denetc.h26 struct xdp_frame *xdp_frame; member
402 struct xdp_frame **frames, u32 flags);
/Linux-v6.1/drivers/net/ethernet/microsoft/mana/
Dmana_bpf.c35 static int mana_xdp_xmit_fm(struct net_device *ndev, struct xdp_frame *frame, in mana_xdp_xmit_fm()
51 int mana_xdp_xmit(struct net_device *ndev, int n, struct xdp_frame **frames, in mana_xdp_xmit()
/Linux-v6.1/drivers/net/
Dveth.c79 struct xdp_frame *q[VETH_XDP_TX_BULK_SIZE];
246 static struct xdp_frame *veth_ptr_to_xdp(void *ptr) in veth_ptr_to_xdp()
251 static void *veth_xdp_to_ptr(struct xdp_frame *xdp) in veth_xdp_to_ptr()
450 struct xdp_frame **frames, in veth_xdp_xmit()
479 struct xdp_frame *frame = frames[i]; in veth_xdp_xmit()
507 struct xdp_frame **frames, u32 flags) in veth_ndo_xdp_xmit()
571 struct xdp_frame *frame = xdp_convert_buff_to_frame(xdp); in veth_xdp_tx()
584 static struct xdp_frame *veth_xdp_rcv_one(struct veth_rq *rq, in veth_xdp_rcv_one()
585 struct xdp_frame *frame, in veth_xdp_rcv_one()
589 struct xdp_frame orig_frame; in veth_xdp_rcv_one()
[all …]
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.h25 struct xdp_frame **frames, u32 flags);
Dbnxt_xdp.c117 struct xdp_frame *xdpf) in __bnxt_xmit_xdp_redirect()
334 struct xdp_frame **frames, u32 flags) in bnxt_xdp_xmit()
360 struct xdp_frame *xdp = frames[i]; in bnxt_xdp_xmit()
/Linux-v6.1/drivers/net/hyperv/
Dnetvsc_bpf.c230 struct xdp_frame *frame, u16 q_idx) in netvsc_ndoxdp_xmit_fm()
248 struct xdp_frame **frames, u32 flags) in netvsc_ndoxdp_xmit()
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_txrx_common.h17 struct xdp_frame *xdpf);
/Linux-v6.1/drivers/net/ethernet/sfc/siena/
Dtx.c208 int efx_siena_xdp_tx_buffers(struct efx_nic *efx, int n, struct xdp_frame **xdpfs, in efx_siena_xdp_tx_buffers()
213 struct xdp_frame *xdpf; in efx_siena_xdp_tx_buffers()
Defx.h216 struct xdp_frame **xdpfs, bool flush);
/Linux-v6.1/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h263 struct xdp_frame *xdpf;
470 int i40e_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames,
/Linux-v6.1/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.h130 struct xdp_frame *xdpf;
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.c65 struct xdp_frame *xdpf; in mlx5e_xmit_xdp_buff()
609 int mlx5e_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames, in mlx5e_xdp_xmit()
633 struct xdp_frame *xdpf = frames[i]; in mlx5e_xdp_xmit()
Dxdp.h56 int mlx5e_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames,
/Linux-v6.1/net/bpf/
Dtest_run.c100 struct xdp_frame frm;
109 struct xdp_frame **frames;
126 struct xdp_frame *frm; in xdp_test_run_init_page()
229 static int xdp_recv_frames(struct xdp_frame **frames, int nframes, in xdp_recv_frames()
245 struct xdp_frame *xdpf = frames[i]; in xdp_recv_frames()
266 struct xdp_frame **frames = xdp->frames; in xdp_test_run_batch()
268 struct xdp_frame *frm; in xdp_test_run_batch()
/Linux-v6.1/drivers/net/ethernet/sfc/
Defx.h240 int efx_xdp_tx_buffers(struct efx_nic *efx, int n, struct xdp_frame **xdpfs,

1234