]> 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)
commitff5972a7c3bef3380dbb10115c4f3f3d8be092b5
treea9d75e3844ebfe3509dac562a8ea4d455376eb6f
parent0246a72ad8fcfe52d4b28336b56d4b8d53a42d00
net/mlx4_core: Fix backward compatibility on VFs

Commit 557aaa8da34d ("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: 557aaa8da34d ('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