aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/vxlan/vxlan_core.c
diff options
context:
space:
mode:
authorMenglong Dong <menglong8.dong@gmail.com>2024-10-09 10:28:29 +0800
committerDavid S. Miller <davem@davemloft.net>2024-10-13 11:33:09 +0100
commitc106479b612d34739c9337a18ce5332ca613f993 (patch)
tree6ee6693dc14d11bee40e3679ae57fbf8f61a1a18 /drivers/net/vxlan/vxlan_core.c
parentnet: vxlan: use kfree_skb_reason() in vxlan_mdb_xmit() (diff)
downloadwireguard-linux-c106479b612d34739c9337a18ce5332ca613f993.tar.xz
wireguard-linux-c106479b612d34739c9337a18ce5332ca613f993.zip
net: vxlan: use kfree_skb_reason() in vxlan_encap_bypass()
Replace kfree_skb with kfree_skb_reason in vxlan_encap_bypass, and no new skb drop reason is added 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>
Diffstat (limited to 'drivers/net/vxlan/vxlan_core.c')
-rw-r--r--drivers/net/vxlan/vxlan_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c
index e82f2e30bd39..2b0f00f92eae 100644
--- a/drivers/net/vxlan/vxlan_core.c
+++ b/drivers/net/vxlan/vxlan_core.c
@@ -2290,7 +2290,7 @@ static void vxlan_encap_bypass(struct sk_buff *skb, struct vxlan_dev *src_vxlan,
rcu_read_lock();
dev = skb->dev;
if (unlikely(!(dev->flags & IFF_UP))) {
- kfree_skb(skb);
+ kfree_skb_reason(skb, SKB_DROP_REASON_DEV_READY);
goto drop;
}