]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
veth: use napi_skb_cache_get_bulk() instead of xdp_alloc_skb_bulk()
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Tue, 25 Feb 2025 17:17:49 +0000 (18:17 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 27 Feb 2025 13:03:52 +0000 (14:03 +0100)
commit1c5bf4de975dd4d493cea3567703404819c81425
tree57af76f7596840390aef9f8a29f1fb685f90d99a
parented16b8a4d1ca901fc13ced042b76dde54738249a
veth: use napi_skb_cache_get_bulk() instead of xdp_alloc_skb_bulk()

Now that we can bulk-allocate skbs from the NAPI cache, use that
function to do that in veth as well instead of direct allocation from
the kmem caches. veth uses NAPI and GRO, so this is both context-safe
and beneficial.

Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/veth.c