aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/pensando/ionic/ionic_dev.h
diff options
context:
space:
mode:
authorShannon Nelson <snelson@pensando.io>2020-03-27 20:14:47 -0700
committerDavid S. Miller <davem@davemloft.net>2020-03-30 11:40:50 -0700
commit49d3b493673a000b5e9fd8bf1b286e847f104fa9 (patch)
tree87eed5f790ebd4400d896dcc91533b9f7acf4dce /drivers/net/ethernet/pensando/ionic/ionic_dev.h
parentionic: check for queues before deleting (diff)
downloadlinux-dev-49d3b493673a000b5e9fd8bf1b286e847f104fa9.tar.xz
linux-dev-49d3b493673a000b5e9fd8bf1b286e847f104fa9.zip
ionic: disable the queues on link down
When the link goes down, we need to disable the queues on the NIC in addition to stopping the netdev stack. This lets the FW know that the driver has stopped queue activity, and then the FW can do internal reconfiguration work, whether actually Link related, or for other internal FW needs. To do this, we pull out the queue enable and disable from ionic_open() and ionic_stop() so they can be used by other routines. To help keep things sane, we swap the queue enables so that the rx queue and its napi are enabled before the tx queue which rides on the rx queues napi. We also drop the ionic_lif_quiesce() as it doesn't do anything more than what the queue disable has already taken care of. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pensando/ionic/ionic_dev.h')
0 files changed, 0 insertions, 0 deletions