Searched refs:wqebbs (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en.h | 217 u8 wqebbs = mlx5e_get_max_sq_wqebbs(mdev); in mlx5e_get_max_sq_aligned_wqebbs() local 219 wqebbs = min_t(u8, wqebbs, MLX5_SEND_WQE_MAX_WQEBBS - 1); in mlx5e_get_max_sq_aligned_wqebbs() 221 wqebbs = ALIGN_DOWN(wqebbs, 2); in mlx5e_get_max_sq_aligned_wqebbs() 223 return wqebbs; in mlx5e_get_max_sq_aligned_wqebbs()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | params.c | 1218 u32 wqebbs, total_pages, useful_space; in mlx5e_build_icosq_log_wq_sz() local 1225 wqebbs = mlx5e_mpwrq_total_umr_wqebbs(mdev, params, NULL); in mlx5e_build_icosq_log_wq_sz() 1227 wqebbs += mlx5e_max_xsk_wqebbs(mdev, params); in mlx5e_build_icosq_log_wq_sz() 1238 total_pages = DIV_ROUND_UP(wqebbs * MLX5_SEND_WQE_BB, useful_space); in mlx5e_build_icosq_log_wq_sz() 1239 wqebbs = total_pages * (PAGE_SIZE / MLX5_SEND_WQE_BB); in mlx5e_build_icosq_log_wq_sz() 1241 return max_t(u8, MLX5E_PARAMS_MINIMUM_LOG_SQ_SIZE, order_base_2(wqebbs)); in mlx5e_build_icosq_log_wq_sz()
|