]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Fix backward compatibility on VFs
authorEli Cohen <eli@mellanox.com>
Thu, 17 Mar 2016 16:49:42 +0000 (18:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Mar 2016 03:09:45 +0000 (23:09 -0400)
commit0c5201ab8a44843005f3fab8f41396d517197462
treea9d75e3844ebfe3509dac562a8ea4d455376eb6f
parentf5e5023bbbddfa26c0fd23a4158d275549709e3c
net/mlx4_core: Fix backward compatibility on VFs

Commit 5dbbe702c8c9 ("net/mlx4_core: Set UAR page size to 4KB regardless
of system page size") introduced dependency where old VF drivers without
this fix fail to load if the PF driver runs with this commit.

To resolve this add a module parameter which disables that functionality
by default.  If both the PF and VFs are running with a driver with that
commit the administrator may set the module param to true.

The module parameter is called enable_4k_uar.

Fixes: 5dbbe702c8c9 ('net/mlx4_core: Set UAR page size to 4KB ...')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c