kernel_samsung_a53x/drivers/net/ethernet/amd/xgbe
Raju Rangoju 6ac079c037 amd-xgbe: handle the corner-case during tx completion
[ Upstream commit 7121205d5330c6a3cb3379348886d47c77b78d06 ]

The existing implementation uses software logic to accumulate tx
completions until the specified time (1ms) is met and then poll them.
However, there exists a tiny gap which leads to a race between
resetting and checking the tx_activate flag. Due to this the tx
completions are not reported to upper layer and tx queue timeout
kicks-in restarting the device.

To address this, introduce a tx cleanup mechanism as part of the
periodic maintenance process.

Fixes: c5aa9e3b8156 ("amd-xgbe: Initial AMD 10GbE platform driver")
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:10:55 +01:00
..
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-dcb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-dev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-drv.c amd-xgbe: handle the corner-case during tx completion 2024-11-18 12:10:55 +01:00
xgbe-ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-mdio.c amd-xgbe: handle corner-case during sfp hotplug 2024-11-18 12:10:55 +01:00
xgbe-pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-phy-v1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-phy-v2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe-ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xgbe.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00