]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Add GFP_DMA32 for rx buffers if no 64 capability
authorDavid Wu <david.wu@rock-chips.com>
Mon, 13 Dec 2021 11:15:15 +0000 (19:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Dec 2021 15:06:07 +0000 (15:06 +0000)
commitf5ae1ba8c99c15e939bf654480fb8f5caa672e39
tree3066d67567c33b8e82d9fb2ec22fd08cdc38b070
parentcc1acc8e60b4ef0bf28ef2d382c1d5f51a8716e3
net: stmmac: Add GFP_DMA32 for rx buffers if no 64 capability

Use page_pool_alloc_pages instead of page_pool_dev_alloc_pages, which
can give the gfp parameter, in the case of not supporting 64-bit width,
using 32-bit address memory can reduce a copy from swiotlb.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c