]> git.ipfire.org Git - thirdparty/linux.git/commit
net: call skb_defer_free_flush() from __napi_busy_loop()
authorEric Dumazet <edumazet@google.com>
Tue, 27 Feb 2024 21:01:04 +0000 (21:01 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Feb 2024 04:22:03 +0000 (20:22 -0800)
commit1200097fa8f0d8e8ddfe5c554d8fa2bc03b2df92
treeac87c697e3641810532af04a5dc19cfb15cec2bc
parent99123622050f10ca9148a0fffba2de0afd6cdfff
net: call skb_defer_free_flush() from __napi_busy_loop()

skb_defer_free_flush() is currently called from net_rx_action()
and napi_threaded_poll().

We should also call it from __napi_busy_loop() otherwise
there is the risk the percpu queue can grow until an IPI
is forced from skb_attempt_defer_free() adding a latency spike.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Samiullah Khawaja <skhawaja@google.com>
Acked-by: Stanislav Fomichev <sdf@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240227210105.3815474-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c