linux/drivers/net/ethernet/hisilicon
Jijie Shao b545b6ea18 net: hibmcge: move dma_rmb() after dma_sync_single_for_cpu() in RX path
The dma_rmb() barrier was placed before dma_sync_single_for_cpu(), which
is incorrect. DMA sync must complete first to make the buffer accessible
to the CPU, then the rmb barrier ensures subsequent descriptor reads
observe the latest data written by the hardware.

Reorder the operations so dma_sync_single_for_cpu() is called before
dma_rmb() to guarantee the driver reads consistent data from the DMA
buffer.

Fixes: f72e255940 ("net: hibmcge: Implement rx_poll function to receive packets")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20260525144525.94884-3-shaojijie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-05-28 12:59:36 +02:00
..
hibmcge net: hibmcge: move dma_rmb() after dma_sync_single_for_cpu() in RX path 2026-05-28 12:59:36 +02:00
hns Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
hns3 Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
hip04_eth.c net: ethernet: hisilicon: Switch to use hrtimer_setup() 2025-02-18 10:35:45 +01:00
hisi_femac.c
hix5hd2_gmac.c
hns_mdio.c net: hisilicon: hns_mdio: remove incorrect ACPI_PTR annotation 2025-02-27 13:42:15 +01:00
Kconfig net: hibmcge: add support for pagepool on rx 2025-11-26 18:22:40 -08:00
Makefile