]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Turn off device-managed FS bit in dev-cap wrapper if DMFS is not enabled
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Thu, 7 Mar 2013 03:46:53 +0000 (03:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Mar 2013 20:52:03 +0000 (15:52 -0500)
commit17245880b5e13c570e80a969be7e7878b821c260
tree1be0a1a1c9bc6380e655b580d8236c9ea3c16fc2
parentbf1c5ba01a64f160cc05f5a4c0254925beb66a8e
net/mlx4_core: Turn off device-managed FS bit in dev-cap wrapper if DMFS is not enabled

Older kernels detect DMFS (device-managed flow steering) from the HCA
device capability directly, regardless of whether the capability was
enabled in INIT_HCA, this is fixed by commit 0ee39201b "mlx4_core: Adjustments
to Flow Steering activation logic for SR-IOV"

To protect against guests running kernels without this fix, the host driver
should turn off the DMFS capability bit in mlx4_QUERY_DEV_CAP_wrapper.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c