]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f3636eb1e734cb56617bc9f329c95575def3117
treeceb42e7d5379a93854e44624b1d48eb1a2eed078
parentee6c03d6d8fcf49d353a372656bcc8bac5473e6d
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