From: Dekel Peled Date: Mon, 3 Aug 2020 09:18:27 +0000 (+0300) Subject: net/mlx5: fix number of retries for UAR allocation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=38a57046298da634dd6b8dec072e9fa435589d28;p=dpdk.git net/mlx5: fix number of retries for UAR allocation Previous fix added definition of number of retries for UAR allocation. This value is adequate for x86 systems with 4K pages. On Power9 system with 64K pages the required value is 32. This patch updates the defined value from 2 to 32. Fixes: a0bfe9d56f74 ("net/mlx5: fix UAR memory mapping type") Signed-off-by: Dekel Peled Acked-by: Viacheslav Ovsiienko --- diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h index e5f7acc40c..c26d5a2927 100644 --- a/drivers/net/mlx5/mlx5_defs.h +++ b/drivers/net/mlx5/mlx5_defs.h @@ -202,9 +202,7 @@ * UAR base address if UAR was not the first object in the UAR page. * It caused the PMD failure and we should try to get another UAR * till we get the first one with non-NULL base address returned. - * Should follow the rdma_core internal (not exported) definition - * MLX5_NUM_NON_FP_BFREGS_PER_UAR. */ -#define MLX5_ALLOC_UAR_RETRY 2 +#define MLX5_ALLOC_UAR_RETRY 32 #endif /* RTE_PMD_MLX5_DEFS_H_ */