]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2372bc99a0b4ea95b78c241e604abc515709946a
tree5f05fc347caf345e1c1ac8c6d8c75e279a5ada0a
parent6ea750356f76465ef1e59bce9c970220ae24108a
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