Searched refs:klm_entries (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_rx.c | 640 u16 klm_entries, u16 index) in mlx5e_build_shampo_hd_umr() argument 654 entries = ALIGN(klm_entries, MLX5_UMR_KLM_NUM_ENTRIES_ALIGNMENT); in mlx5e_build_shampo_hd_umr() 723 u16 klm_entries, num_wqe, index, entries_before; in mlx5e_alloc_rx_hd_mpwqe() local 728 klm_entries = bitmap_find_window(shampo->bitmap, in mlx5e_alloc_rx_hd_mpwqe() 731 if (!klm_entries) in mlx5e_alloc_rx_hd_mpwqe() 738 if (unlikely(entries_before < klm_entries)) in mlx5e_alloc_rx_hd_mpwqe() 740 DIV_ROUND_UP(klm_entries - entries_before, max_klm_entries); in mlx5e_alloc_rx_hd_mpwqe() 742 num_wqe = DIV_ROUND_UP(klm_entries, max_klm_entries); in mlx5e_alloc_rx_hd_mpwqe() 745 len = (klm_entries > max_klm_entries) ? max_klm_entries : in mlx5e_alloc_rx_hd_mpwqe() 746 klm_entries; in mlx5e_alloc_rx_hd_mpwqe() [all …]
|
H A D | en.h | 153 #define MLX5E_KLM_UMR_WQEBBS(klm_entries) \ argument 154 (DIV_ROUND_UP(MLX5E_KLM_UMR_WQE_SZ(klm_entries), MLX5_SEND_WQE_BB)) 156 #define MLX5E_KLM_UMR_DS_CNT(klm_entries)\ argument 157 (DIV_ROUND_UP(MLX5E_KLM_UMR_WQE_SZ(klm_entries), MLX5_SEND_WQE_DS))
|