kernel_samsung_a53x/drivers/net/ethernet/realtek
Heiner Kallweit 703e09df9c r8169: remove unneeded memory barrier in rtl_tx
[ Upstream commit 3a689e34973e8717cd57991c6fcf527dc56062b5 ]

tp->dirty_tx isn't changed outside rtl_tx(). Therefore I see no need
to guarantee a specific order of reading tp->dirty_tx and tp->cur_tx.
Having said that we can remove the memory barrier.
In addition use READ_ONCE() when reading tp->cur_tx because it can
change in parallel to rtl_tx().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/2264563a-fa9e-11b0-2c42-31bc6b8e2790@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: remove unneeded memory barrier in rtl_tx 2024-11-19 14:19:29 +01:00
r8169_phy_config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00