]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:41:36 +0000 (14:41 +0200)
commit8fc4f0e6c3049d4fcbb41ba15b00398542ab09b0
treeb0642e7827f6ab79434cb77e2effb2d7d9a585d5
parentf0e6f2314d662a1e6b6bd77e1746a17f744fdacb
net/mlx5: Enable 4K UAR only when page size is bigger than 4K

[ Upstream commit 91828bd89940e8145f91751a015bc11bc486aad0 ]

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: f502d834950a ("net/mlx5: Activate support for 4K UARs")
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c