sfc: Strengthen EFX_ASSERT_RESET_SERIALISED
Subsystems (2)
PATCH 3/16 sfc: Strengthen EFX_ASSERT_RESET_SERIALISED
Signed-off-by Ben Hutchings <[email protected]>
--- drivers/net/sfc/efx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/sfc/efx.c +2 -1
@@ -186,7 +186,8 @@ static void efx_fini_channels(struct efx_nic *efx);#define EFX_ASSERT_RESET_SERIALISED (efx) \ do { \ - if (efx->state == STATE_RUNNING) \ + if ((efx->state == STATE_RUNNING) || \ + (efx->state == STATE_DISABLED)) \ ASSERT_RTNL(); \ } while (0)
Signature · 3 lines
Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.