net: thunderx: Fix BGX transmit stall due to underflow
authorSunil Goutham <sgoutham@cavium.com>
Thu, 27 Jul 2017 07:23:04 +0000 (12:53 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2017 21:17:07 +0000 (14:17 -0700)
commit500268e9f28de972514de89a5a1b4106d0417989
treeceb42e7d5379a93854e44624b1d48eb1a2eed078
parent8d65843c44269c21e95c98090d9bb4848d473853
net: thunderx: Fix BGX transmit stall due to underflow

For SGMII/RGMII/QSGMII interfaces when physical link goes down
while traffic is high is resulting in underflow condition being set
on that specific BGX's LMAC. Which assets a backpresure and VNIC stops
transmitting packets.

This is due to BGX being disabled in link status change callback while
packet is in transit. This patch fixes this issue by not disabling BGX
but instead just disables packet Rx and Tx.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h