Skip to content

Commit f502d83

Browse files
Eli CohenSaeed Mahameed
authored andcommitted
net/mlx5: Activate support for 4K UARs
Activate 4K UAR support for firmware versions that support it. Signed-off-by: Eli Cohen <[email protected]> Reviewed-by: Matan Barak <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 30aa60b commit f502d83

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+4
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,10 @@ static int handle_hca_cap(struct mlx5_core_dev *dev)
530530
/* disable cmdif checksum */
531531
MLX5_SET(cmd_hca_cap, set_hca_cap, cmdif_checksum, 0);
532532

533+
/* If the HCA supports 4K UARs use it */
534+
if (MLX5_CAP_GEN_MAX(dev, uar_4k))
535+
MLX5_SET(cmd_hca_cap, set_hca_cap, uar_4k, 1);
536+
533537
MLX5_SET(cmd_hca_cap, set_hca_cap, log_uar_page_sz, PAGE_SHIFT - 12);
534538

535539
err = set_caps(dev, set_ctx, set_sz,

0 commit comments

Comments
 (0)