]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
macvlan: avoid spinlock contention in macvlan_broadcast_enqueue()
authorEric Dumazet <edumazet@google.com>
Wed, 1 Apr 2026 10:38:09 +0000 (10:38 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 00:56:35 +0000 (17:56 -0700)
commit0d5dc1d7aad144b6c561e72e96f3107d812c6026
treebb6a32fc11123b363f20c69c42be5766799c167a
parent1ef5789d9906df3771c99b7f413caaf2bf473ca5
macvlan: avoid spinlock contention in macvlan_broadcast_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.

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