• Shannon Nelson's avatar
    ionic: disable the queues on link down · 49d3b493
    Shannon Nelson authored
    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: default avatarShannon Nelson <snelson@pensando.io>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    49d3b493
ionic_lif.c 66.2 KB