net: axienet: Use napi_alloc_skb when refilling RX ring
authorRobert Hancock <robert.hancock@calian.com>
Tue, 8 Mar 2022 21:10:13 +0000 (15:10 -0600)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Mar 2022 04:19:16 +0000 (20:19 -0800)
commit6c7e7da2e0f2141cdc491cd5b9d0b937c08939c9
tree183907fdc7ae750bd447702db8946c2b10cbb808
parent65466904b015f6eeb9225b51aeb29b01a1d4b59c
net: axienet: Use napi_alloc_skb when refilling RX ring

Use napi_alloc_skb to allocate memory when refilling the RX ring
in axienet_poll for more efficiency. napi_alloc_skb() can reuse
softirq-local cache of freed skbs which may still be cache-warm
and skipping allocator calls.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Link: https://lore.kernel.org/r/20220308211013.1530955-1-robert.hancock@calian.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c