We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30aa60b commit f502d83Copy full SHA for f502d83
drivers/net/ethernet/mellanox/mlx5/core/main.c
@@ -530,6 +530,10 @@ static int handle_hca_cap(struct mlx5_core_dev *dev)
530
/* disable cmdif checksum */
531
MLX5_SET(cmd_hca_cap, set_hca_cap, cmdif_checksum, 0);
532
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
+
537
MLX5_SET(cmd_hca_cap, set_hca_cap, log_uar_page_sz, PAGE_SHIFT - 12);
538
539
err = set_caps(dev, set_ctx, set_sz,
0 commit comments