net: lan743x: Allocate rings outside ZONE_DMA
authorThangaraj Samynathan <thangaraj.s@microchip.com>
Tue, 15 Apr 2025 04:45:09 +0000 (10:15 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:15:28 +0000 (18:15 -0700)
commit8a8f3f4991761a70834fe6719d09e9fd338a766e
treec97037db3f4184756167288396e4638e6c4dd4c7
parent20accfd3aa0b0aebbc27d1f3bddb819db7b854a3
net: lan743x: Allocate rings outside ZONE_DMA

The driver allocates ring elements using GFP_DMA flags. There is
no dependency from LAN743x hardware on memory allocation should be
in DMA_ZONE. Hence modifying the flags to use only GFP_ATOMIC. This
is consistent with other callers of lan743x_rx_init_ring_element().

Reported-by: Zhang, Liyin(CN) <Liyin.Zhang.CN@windriver.com>
Signed-off-by: Thangaraj Samynathan <thangaraj.s@microchip.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250415044509.6695-1-thangaraj.s@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan743x_main.c