]> 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)
commite69d6b882a2ff8c0b9b31338e03eda289dce4eb8
treeceb42e7d5379a93854e44624b1d48eb1a2eed078
parente8ed591b287bbf7a6e98de5db8776495557f65cb
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