]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Enable 4K UAR only when page size is bigger than 4K
authorMajd Dibbiny <majd@mellanox.com>
Sun, 28 May 2017 11:47:56 +0000 (14:47 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 11 Jun 2017 10:10:36 +0000 (13:10 +0300)
commit5c651629671cd4abf4985df8677de2a33035e813
tree1fff3f2cc87fa34986c913e20ffa3569701ddc5a
parent8fb08728a461f0ea4c68b828dd3d781ca42e7eac
net/mlx5: Enable 4K UAR only when page size is bigger than 4K

When the page size isn't bigger than 4K, there is no added value of enabling 4K
UAR feature in the Firmware.

Modified the condition of enabling the 4K UAR accordingly.

Fixes: d34b9228f6ff ("net/mlx5: Activate support for 4K UARs")
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c