net: thunderx: workaround BGX TX Underflow issue
authorTim Harvey <tharvey@gateworks.com>
Wed, 19 Feb 2020 23:19:36 +0000 (15:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 13:14:56 +0000 (14:14 +0100)
commit7c1a140b000d3768d759b5c0df7144c73b398065
treefc63e4ef09e12d73a5deab2b469a995fa7ac1c26
parent297435d902e2f6ebea6de3320c688bef7a744adc
net: thunderx: workaround BGX TX Underflow issue

[ Upstream commit 971617c3b761c876d686a2188220a33898c90e99 ]

While it is not yet understood why a TX underflow can easily occur
for SGMII interfaces resulting in a TX wedge. It has been found that
disabling/re-enabling the LMAC resolves the issue.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Robert Jones <rjones@gateworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h