ibmvnic: Halt TX and report carrier off on H_CLOSED return code
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Fri, 26 May 2017 14:30:42 +0000 (10:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:32:45 +0000 (15:32 -0400)
commitb8c80b8413eec7ae154cdad692a7fd1cb32d0370
tree398178ab51f81d8ea65808d8081e6c4c1b43d846
parent8cb31cfc9448e2ce0bda899eb15f74bc0a875d90
ibmvnic: Halt TX and report carrier off on H_CLOSED return code

This patch disables transmissions and reports carrier off if xmit
function returns that the hardware TX queue is closed. The driver can
then await a signal from firmware to determine the correct reset method.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c