Skip to content
Commit 6c7e7da2 authored by Robert Hancock's avatar Robert Hancock Committed by Jakub Kicinski
Browse files

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: default avatarRobert Hancock <robert.hancock@calian.com>
Link: https://lore.kernel.org/r/20220308211013.1530955-1-robert.hancock@calian.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 65466904
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment