Home
last modified time | relevance | path

Searched refs:xsk_buff_pool (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v5.10/include/net/
Dxdp_sock_drv.h14 void xsk_tx_completed(struct xsk_buff_pool *pool, u32 nb_entries);
15 bool xsk_tx_peek_desc(struct xsk_buff_pool *pool, struct xdp_desc *desc);
16 void xsk_tx_release(struct xsk_buff_pool *pool);
17 struct xsk_buff_pool *xsk_get_pool_from_qid(struct net_device *dev,
19 void xsk_set_rx_need_wakeup(struct xsk_buff_pool *pool);
20 void xsk_set_tx_need_wakeup(struct xsk_buff_pool *pool);
21 void xsk_clear_rx_need_wakeup(struct xsk_buff_pool *pool);
22 void xsk_clear_tx_need_wakeup(struct xsk_buff_pool *pool);
23 bool xsk_uses_need_wakeup(struct xsk_buff_pool *pool);
25 static inline u32 xsk_pool_get_headroom(struct xsk_buff_pool *pool) in xsk_pool_get_headroom()
[all …]
Dxsk_buff_pool.h12 struct xsk_buff_pool;
25 struct xsk_buff_pool *pool;
41 struct xsk_buff_pool { struct
80 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs, argument
82 int xp_assign_dev(struct xsk_buff_pool *pool, struct net_device *dev,
84 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_umem *umem,
86 void xp_destroy(struct xsk_buff_pool *pool);
88 void xp_get_pool(struct xsk_buff_pool *pool);
89 bool xp_put_pool(struct xsk_buff_pool *pool);
90 void xp_clear_dev(struct xsk_buff_pool *pool);
[all …]
Dxdp_sock.h50 struct xsk_buff_pool *pool;
/Linux-v5.10/net/xdp/
Dxsk_buff_pool.c11 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_add_xsk()
23 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_del_xsk()
35 void xp_destroy(struct xsk_buff_pool *pool) in xp_destroy()
44 struct xsk_buff_pool *xp_create_and_assign_umem(struct xdp_sock *xs, in xp_create_and_assign_umem()
47 struct xsk_buff_pool *pool; in xp_create_and_assign_umem()
95 void xp_set_rxq_info(struct xsk_buff_pool *pool, struct xdp_rxq_info *rxq) in xp_set_rxq_info()
104 static void xp_disable_drv_zc(struct xsk_buff_pool *pool) in xp_disable_drv_zc()
123 static int __xp_assign_dev(struct xsk_buff_pool *pool, in __xp_assign_dev()
196 int xp_assign_dev(struct xsk_buff_pool *pool, struct net_device *dev, in xp_assign_dev()
202 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_umem *umem, in xp_assign_dev_shared()
[all …]
Dxsk_queue.h126 static inline bool xp_aligned_validate_desc(struct xsk_buff_pool *pool, in xp_aligned_validate_desc()
144 static inline bool xp_unaligned_validate_desc(struct xsk_buff_pool *pool, in xp_unaligned_validate_desc()
164 static inline bool xp_validate_desc(struct xsk_buff_pool *pool, in xp_validate_desc()
173 struct xsk_buff_pool *pool) in xskq_cons_is_valid_desc()
184 struct xsk_buff_pool *pool) in xskq_cons_read_desc()
243 struct xsk_buff_pool *pool) in xskq_cons_peek_desc()
Dxsk.c36 void xsk_set_rx_need_wakeup(struct xsk_buff_pool *pool) in xsk_set_rx_need_wakeup()
46 void xsk_set_tx_need_wakeup(struct xsk_buff_pool *pool) in xsk_set_tx_need_wakeup()
63 void xsk_clear_rx_need_wakeup(struct xsk_buff_pool *pool) in xsk_clear_rx_need_wakeup()
73 void xsk_clear_tx_need_wakeup(struct xsk_buff_pool *pool) in xsk_clear_tx_need_wakeup()
90 bool xsk_uses_need_wakeup(struct xsk_buff_pool *pool) in xsk_uses_need_wakeup()
96 struct xsk_buff_pool *xsk_get_pool_from_qid(struct net_device *dev, in xsk_get_pool_from_qid()
120 int xsk_reg_pool_at_qid(struct net_device *dev, struct xsk_buff_pool *pool, in xsk_reg_pool_at_qid()
294 void xsk_tx_completed(struct xsk_buff_pool *pool, u32 nb_entries) in xsk_tx_completed()
300 void xsk_tx_release(struct xsk_buff_pool *pool) in xsk_tx_release()
314 bool xsk_tx_peek_desc(struct xsk_buff_pool *pool, struct xdp_desc *desc) in xsk_tx_peek_desc()
[all …]
DMakefile3 obj-$(CONFIG_XDP_SOCKETS) += xsk_buff_pool.o
Dxsk.h47 int xsk_reg_pool_at_qid(struct net_device *dev, struct xsk_buff_pool *pool,
Dxsk_diag.c49 struct xsk_buff_pool *pool = xs->pool; in xsk_diag_put_umem()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dpool.c10 struct xsk_buff_pool *pool) in mlx5e_xsk_map_pool()
18 struct xsk_buff_pool *pool) in mlx5e_xsk_unmap_pool()
46 static int mlx5e_xsk_add_pool(struct mlx5e_xsk *xsk, struct xsk_buff_pool *pool, u16 ix) in mlx5e_xsk_add_pool()
65 static bool mlx5e_xsk_is_pool_sane(struct xsk_buff_pool *pool) in mlx5e_xsk_is_pool_sane()
71 void mlx5e_build_xsk_param(struct xsk_buff_pool *pool, struct mlx5e_xsk_param *xsk) in mlx5e_build_xsk_param()
78 struct xsk_buff_pool *pool, u16 ix) in mlx5e_xsk_enable_locked()
157 struct xsk_buff_pool *pool = mlx5e_xsk_get_pool(&priv->channels.params, in mlx5e_xsk_disable_locked()
183 static int mlx5e_xsk_enable_pool(struct mlx5e_priv *priv, struct xsk_buff_pool *pool, in mlx5e_xsk_enable_pool()
206 int mlx5e_xsk_setup_pool(struct net_device *dev, struct xsk_buff_pool *pool, u16 qid) in mlx5e_xsk_setup_pool()
Dpool.h9 static inline struct xsk_buff_pool *mlx5e_xsk_get_pool(struct mlx5e_params *params, in mlx5e_xsk_get_pool()
22 void mlx5e_build_xsk_param(struct xsk_buff_pool *pool, struct mlx5e_xsk_param *xsk);
25 int mlx5e_xsk_setup_pool(struct net_device *dev, struct xsk_buff_pool *pool, u16 qid);
Dsetup.h15 struct mlx5e_xsk_param *xsk, struct xsk_buff_pool *pool,
Dtx.c69 struct xsk_buff_pool *pool = sq->xsk_pool; in mlx5e_xsk_tx()
Dsetup.c48 struct mlx5e_xsk_param *xsk, struct xsk_buff_pool *pool, in mlx5e_open_xsk()
/Linux-v5.10/drivers/net/ethernet/intel/i40e/
Di40e_xsk.h8 struct xsk_buff_pool;
13 int i40e_xsk_pool_setup(struct i40e_vsi *vsi, struct xsk_buff_pool *pool,
Di40e_xsk.c41 struct xsk_buff_pool *pool, in i40e_xsk_pool_enable()
95 struct xsk_buff_pool *pool; in i40e_xsk_pool_disable()
134 int i40e_xsk_pool_setup(struct i40e_vsi *vsi, struct xsk_buff_pool *pool, in i40e_xsk_pool_setup()
463 struct xsk_buff_pool *bp = tx_ring->xsk_pool; in i40e_clean_xdp_tx_irq()
580 struct xsk_buff_pool *bp = tx_ring->xsk_pool; in i40e_xsk_clean_tx_ring()
Di40e_txrx.h391 struct xsk_buff_pool *xsk_pool;
/Linux-v5.10/drivers/net/ethernet/intel/ice/
Dice_xsk.h12 int ice_xsk_pool_setup(struct ice_vsi *vsi, struct xsk_buff_pool *pool,
24 struct xsk_buff_pool __always_unused *pool, in ice_xsk_pool_setup()
Dice.h328 struct xsk_buff_pool **xsk_pools;
517 static inline struct xsk_buff_pool *ice_xsk_pool(struct ice_ring *ring) in ice_xsk_pool()
519 struct xsk_buff_pool **pools = ring->vsi->xsk_pools; in ice_xsk_pool()
Dice_txrx.h298 struct xsk_buff_pool *xsk_pool;
Dice_xsk.c329 ice_xsk_pool_enable(struct ice_vsi *vsi, struct xsk_buff_pool *pool, u16 qid) in ice_xsk_pool_enable()
367 int ice_xsk_pool_setup(struct ice_vsi *vsi, struct xsk_buff_pool *pool, u16 qid) in ice_xsk_pool_setup()
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c11 struct xsk_buff_pool *ixgbe_xsk_pool(struct ixgbe_adapter *adapter, in ixgbe_xsk_pool()
24 struct xsk_buff_pool *pool, in ixgbe_xsk_pool_enable()
64 struct xsk_buff_pool *pool; in ixgbe_xsk_pool_disable()
87 struct xsk_buff_pool *pool, in ixgbe_xsk_pool_setup()
377 struct xsk_buff_pool *pool = xdp_ring->xsk_pool; in ixgbe_xmit_zc()
443 struct xsk_buff_pool *pool = tx_ring->xsk_pool; in ixgbe_clean_xdp_tx_irq()
530 struct xsk_buff_pool *pool = tx_ring->xsk_pool; in ixgbe_xsk_clean_tx_ring()
Dixgbe_txrx_common.h31 struct xsk_buff_pool *ixgbe_xsk_pool(struct ixgbe_adapter *adapter,
34 struct xsk_buff_pool *pool,
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den.h459 struct xsk_buff_pool *xsk_pool;
623 struct xsk_buff_pool *xsk_pool;
753 struct xsk_buff_pool **pools;
912 struct xsk_buff_pool *xsk_pool, struct mlx5e_rq *rq);
922 struct mlx5e_sq_param *param, struct xsk_buff_pool *xsk_pool,
Den_main.c396 struct xsk_buff_pool *xsk_pool, in mlx5e_alloc_rq()
864 struct xsk_buff_pool *xsk_pool, struct mlx5e_rq *rq) in mlx5e_open_rq()
980 struct xsk_buff_pool *xsk_pool, in mlx5e_alloc_xdpsq()
1472 struct mlx5e_sq_param *param, struct xsk_buff_pool *xsk_pool, in mlx5e_open_xdpsq()
1971 struct xsk_buff_pool *xsk_pool, in mlx5e_open_channel()
2377 struct xsk_buff_pool *xsk_pool = NULL; in mlx5e_open_channels()
3954 struct xsk_buff_pool *xsk_pool = in mlx5e_xsk_validate_mtu()

12