1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 2 /* Copyright (c) 2019 Mellanox Technologies. */ 3 4 #ifndef __MLX5_EN_XSK_RX_H__ 5 #define __MLX5_EN_XSK_RX_H__ 6 7 #include "en.h" 8 9 /* RX data path */ 10 11 int mlx5e_xsk_alloc_rx_mpwqe(struct mlx5e_rq *rq, u16 ix); 12 int mlx5e_xsk_alloc_rx_wqes_batched(struct mlx5e_rq *rq, u16 ix, int wqe_bulk); 13 int mlx5e_xsk_alloc_rx_wqes(struct mlx5e_rq *rq, u16 ix, int wqe_bulk); 14 struct sk_buff *mlx5e_xsk_skb_from_cqe_mpwrq_linear(struct mlx5e_rq *rq, 15 struct mlx5e_mpw_info *wi, 16 u16 cqe_bcnt, 17 u32 head_offset, 18 u32 page_idx); 19 struct sk_buff *mlx5e_xsk_skb_from_cqe_linear(struct mlx5e_rq *rq, 20 struct mlx5e_wqe_frag_info *wi, 21 u32 cqe_bcnt); 22 23 #endif /* __MLX5_EN_XSK_RX_H__ */ 24