kernel_samsung_a53x/drivers/net/ethernet/realtek
Heiner Kallweit baeefb25f4 r8169: improve rtl_tx
[ Upstream commit ca1ab89cd2d654661f559bd83ad9fc7323cb6c86 ]

We can simplify the for() condition and eliminate variable tx_left.
The change also considers that tp->cur_tx may be incremented by a
racing rtl8169_start_xmit().
In addition replace the write to tp->dirty_tx and the following
smp_mb() with an equivalent call to smp_store_mb(). This implicitly
adds a WRITE_ONCE() to the write.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/c2e19e5e-3d3f-d663-af32-13c3374f5def@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: c71e3a5cffd5 ("r8169: Fix possible ring buffer corruption on fragmented Tx packets.")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:29 +01:00
..
8139cp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8139too.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
r8169.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
r8169_firmware.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
r8169_firmware.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
r8169_main.c r8169: improve rtl_tx 2024-11-19 14:19:29 +01:00
r8169_phy_config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00