bnx2x: Prevent inner-reload while VFs exist
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 22 Apr 2015 09:47:32 +0000 (12:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Apr 2015 18:23:31 +0000 (14:23 -0400)
commit909d9faae2a447110aa061070145297fffe129cb
tree57929e27c0d5634ca09405c24b8357aa264b9723
parenta2c3935aaa8fe99dbddb13ff244ecec7c324ec8b
bnx2x: Prevent inner-reload while VFs exist

On some feature changes, driver employes an inner-reload flow where it
resets the function and re-configures it with the new required set of
parameters.

Such a flow proves fatal to any VF since those were not intended to be used
while HW is being reset underneath, causing them [at best] to lose all
connectivity.

This changes driver behavior to fail all configuration changes [e.g., mtu
change] requested of the driver in case VFs are active.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c