Skip to content

Commit 6fa0469

Browse files
image-dragongregkh
authored andcommitted
net: vxlan: use kfree_skb_reason() in vxlan_mdb_xmit()
[ Upstream commit 03483db ] Replace kfree_skb() with kfree_skb_reason() in vxlan_mdb_xmit. No drop reasons are introduced in this commit. Signed-off-by: Menglong Dong <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]> Stable-dep-of: 1f5d2fd ("vxlan: Fix NPD in {arp,neigh}_reduce() when using nexthop objects") Signed-off-by: Sasha Levin <[email protected]>
1 parent da1178c commit 6fa0469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/vxlan/vxlan_mdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ netdev_tx_t vxlan_mdb_xmit(struct vxlan_dev *vxlan,
17121712
vxlan_xmit_one(skb, vxlan->dev, src_vni,
17131713
rcu_dereference(fremote->rd), false);
17141714
else
1715-
kfree_skb(skb);
1715+
kfree_skb_reason(skb, SKB_DROP_REASON_VXLAN_NO_REMOTE);
17161716

17171717
return NETDEV_TX_OK;
17181718
}

0 commit comments

Comments
 (0)