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 struct mlx5_cqe64 *cqe, 17 u16 cqe_bcnt, 18 u32 head_offset, 19 u32 page_idx); 20 struct sk_buff *mlx5e_xsk_skb_from_cqe_linear(struct mlx5e_rq *rq, 21 struct mlx5e_wqe_frag_info *wi, 22 struct mlx5_cqe64 *cqe, 23 u32 cqe_bcnt); 24 25 #endif /* __MLX5_EN_XSK_RX_H__ */ 26