sfc: Change entity reset on MC reboot to a new datapath-only reset.
Currently we do an entity reset when we detect an MC reboot. This messes up SRIOV because it leaves VFs orphaned. The extra reset is rather redundant anyway, since the MC reboot will have basically reset everything. This change replaces the entity reset after MC reboot with a simpler datapath reset that reallocates resources but doesn't perform the entity reset. Signed-off-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b9af90499a
commit
087e902550
@@ -1558,7 +1558,9 @@ int efx_mcdi_reset(struct efx_nic *efx, enum reset_type method)
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
if (method == RESET_TYPE_WORLD)
|
||||
if (method == RESET_TYPE_DATAPATH)
|
||||
return 0;
|
||||
else if (method == RESET_TYPE_WORLD)
|
||||
return efx_mcdi_reset_mc(efx);
|
||||
else
|
||||
return efx_mcdi_reset_func(efx);
|
||||
|
Reference in New Issue
Block a user