1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 2 /* Copyright (c) 2019 Mellanox Technologies. */ 3 4 #ifndef __MLX5_EN_PARAMS_H__ 5 #define __MLX5_EN_PARAMS_H__ 6 7 #include "en.h" 8 9 u32 mlx5e_rx_get_linear_frag_sz(struct mlx5e_params *params); 10 u8 mlx5e_mpwqe_log_pkts_per_wqe(struct mlx5e_params *params); 11 bool mlx5e_rx_is_linear_skb(struct mlx5e_params *params); 12 bool mlx5e_rx_mpwqe_is_linear_skb(struct mlx5_core_dev *mdev, 13 struct mlx5e_params *params); 14 u8 mlx5e_mpwqe_get_log_rq_size(struct mlx5e_params *params); 15 u8 mlx5e_mpwqe_get_log_stride_size(struct mlx5_core_dev *mdev, 16 struct mlx5e_params *params); 17 u8 mlx5e_mpwqe_get_log_num_strides(struct mlx5_core_dev *mdev, 18 struct mlx5e_params *params); 19 u16 mlx5e_get_rq_headroom(struct mlx5_core_dev *mdev, 20 struct mlx5e_params *params); 21 22 #endif /* __MLX5_EN_PARAMS_H__ */ 23