]> www.infradead.org Git - users/willy/linux.git/commitdiff
Merge branch 'net-convert-to-skb_dstref_steal-and-skb_dstref_restore'
authorJakub Kicinski <kuba@kernel.org>
Wed, 20 Aug 2025 00:53:30 +0000 (17:53 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Aug 2025 00:54:47 +0000 (17:54 -0700)
Stanislav Fomichev says:

====================
net: Convert to skb_dstref_steal and skb_dstref_restore

To diagnose and prevent issues similar to [0], emit warning
(CONFIG_DEBUG_NET) from skb_dst_set and skb_dst_set_noref when
overwriting non-null reference-counted entry. Two new helpers
are added to handle special cases where the entry needs to be
reset and restored: skb_dstref_steal/skb_dstref_restore. The bulk of
the patches in the series converts manual _skb_refst manipulations
to these new helpers.

0: https://lore.kernel.org/netdev/20250723224625.1340224-1-sdf@fomichev.me/T/#u
====================

Link: https://patch.msgid.link/20250818154032.3173645-1-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge