]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: gro: expose GRO init/cleanup to use outside of NAPI
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Tue, 25 Feb 2025 17:17:44 +0000 (18:17 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 27 Feb 2025 13:03:14 +0000 (14:03 +0100)
commit388d31417ce0f1d08a1a86cab4c1dd700e9e9481
treea9820873e3751ffb700d73d9b0feb447e65e033e
parent291515c7640962f8865e4c54897a5e91526b450c
net: gro: expose GRO init/cleanup to use outside of NAPI

Make GRO init and cleanup functions global to be able to use GRO
without a NAPI instance. Taking into account already global gro_flush(),
it's now fully usable standalone.
New functions are not exported, since they're not supposed to be used
outside of the kernel core code.

Tested-by: Daniel Xu <dxu@dxuuu.xyz>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
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>
include/net/gro.h
net/core/dev.c
net/core/gro.c