]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: vxlan: use kfree_skb_reason() in vxlan_xmit()
authorMenglong Dong <menglong8.dong@gmail.com>
Wed, 9 Oct 2024 02:28:26 +0000 (10:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:58:11 +0000 (18:58 +0200)
commitda1178c6e9bb4d7dff50cc5e8f943aa66dc2fa9a
tree3b329cccac91913100bf07460469401781d17591
parente89198454fb62bc8b0d8d020e8cf72c2f6bf8352
net: vxlan: use kfree_skb_reason() in vxlan_xmit()

[ Upstream commit b71a576e452b800efeac49ecca116d954601d911 ]

Replace kfree_skb() with kfree_skb_reason() in vxlan_xmit(). Following
new skb drop reasons are introduced for vxlan:

/* no remote found for xmit */
SKB_DROP_REASON_VXLAN_NO_REMOTE
/* packet without necessary metadata reached a device which is
 * in "external" mode
 */
SKB_DROP_REASON_TUNNEL_TXINFO

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 1f5d2fd1ca04 ("vxlan: Fix NPD in {arp,neigh}_reduce() when using nexthop objects")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/vxlan/vxlan_core.c
include/net/dropreason-core.h