]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipvlan: avoid spinlock contention in ipvlan_multicast_enqueue()
authorEric Dumazet <edumazet@google.com>
Thu, 9 Apr 2026 08:52:38 +0000 (08:52 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 16:05:54 +0000 (09:05 -0700)
commit6dd82499fa6c468237801541589eb83023d9fd46
tree27146319a8ee3c7a2124fe91fe783381301a3437
parent441ec8b5bdcc77f084b63800fd39404d9fc7c9f5
ipvlan: avoid spinlock contention in ipvlan_multicast_enqueue()

Under high stress, we spend a lot of time cloning skbs,
then acquiring a spinlock, then freeing the clone because
the queue is full.

Add a shortcut to avoid these costs under pressure, as we did
in macvlan with commit 0d5dc1d7aad1 ("macvlan: avoid spinlock
contention in macvlan_broadcast_enqueue()")

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260409085238.1122947-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipvlan/ipvlan_core.c