]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: do not device_attach if a reset is pending
authorPeter Dunning <pdunning@solarflare.com>
Fri, 17 Feb 2017 15:50:43 +0000 (15:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 20:29:40 +0000 (15:29 -0500)
commit5c0bcf761656cb3edd8012a3aba18f0d999a67fa
treec5080f2edd3d4c029e5e38ede183e135ef81787a
parentc7f5a9e7d7a3e4997ba8ee5fa9faa51777fac387
sfc: do not device_attach if a reset is pending

efx_start_all can return without initialising queues as a reset is pending.
 This means that when netif_device_attach is called, the kernel can start
 sending traffic without having an initialised TX queue to send to.
This patch avoids this by not calling netif_device_attach if there is a
 pending reset.

Fixes: 5f84a763e2aa ("sfc:On MCDI timeout, issue an FLR (and mark MCDI to fail-fast)")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/ef10_sriov.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/selftest.c