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

Replace kfree_skb() with kfree_skb_reason() in vxlan_mdb_xmit. No drop
reasons are introduced in this commit.

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_mdb.c

index 60eb95a06d551c629d2a0ee4c9a769e3e159f9a0..e1173ae134284ef0dfe48d595fb82720828e99ae 100644 (file)
@@ -1712,7 +1712,7 @@ netdev_tx_t vxlan_mdb_xmit(struct vxlan_dev *vxlan,
                vxlan_xmit_one(skb, vxlan->dev, src_vni,
                               rcu_dereference(fremote->rd), false);
        else
-               kfree_skb(skb);
+               kfree_skb_reason(skb, SKB_DROP_REASON_VXLAN_NO_REMOTE);
 
        return NETDEV_TX_OK;
 }