ionic: have ionic_qcq_disable decide on sending to hardware
authorShannon Nelson <snelson@pensando.io>
Fri, 1 Oct 2021 18:05:56 +0000 (11:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Oct 2021 13:00:22 +0000 (14:00 +0100)
commit3a5e0fafefe0b33372074728a57a55a12b56a408
tree5f05fc347caf345e1c1ac8c6d8c75e279a5ada0a
parenta095e4775b7c86a26d111b66793ff91bff6e77ce
ionic: have ionic_qcq_disable decide on sending to hardware

Simplify the code a little by keeping the send_to_hw decision
inside of ionic_qcq_disable rather than in the callers.  Also,
add ENXIO to the decision expression.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c