]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Enable 4K UAR if SRIOV module parameter is not enabled
authorHuy Nguyen <huyn@mellanox.com>
Thu, 17 Aug 2017 15:29:52 +0000 (18:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 23:15:37 +0000 (16:15 -0700)
commit8031e48dabdf6af7224ce65e44a2099c38e8c58a
tree9002fac3828db98098415e2761eea302309cabee
parenta98220663fc12e2fe1ca46283aea5e0d7668d86a
net/mlx4_core: Enable 4K UAR if SRIOV module parameter is not enabled

enable_4k_uar module parameter was added in patch cited below to
address the backward compatibility issue in SRIOV when the VM has
system's PAGE_SIZE uar implementation and the Hypervisor has 4k uar
implementation.

The above compatibility issue does not exist in the non SRIOV case.
In this patch, we always enable 4k uar implementation if SRIOV
is not enabled on mlx4's supported cards.

Fixes: 0c5201ab8a44 ("net/mlx4_core: Fix backward compatibility on VFs")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c