From: Menglong Dong Date: Wed, 9 Oct 2024 02:28:30 +0000 (+0800) Subject: net: vxlan: use kfree_skb_reason() in encap_bypass_if_local() X-Git-Tag: microblaze-v6.16~599^2~341^2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=790961d88b0e63d993e112b747746dfd94a7c823;p=linux-2.6-microblaze.git net: vxlan: use kfree_skb_reason() in encap_bypass_if_local() Replace kfree_skb() with kfree_skb_reason() in encap_bypass_if_local, and no new skb drop reason is added in this commit. Signed-off-by: Menglong Dong Reviewed-by: Simon Horman Reviewed-by: Kalesh AP Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c index 2b0f00f92eae..d507155e62ce 100644 --- a/drivers/net/vxlan/vxlan_core.c +++ b/drivers/net/vxlan/vxlan_core.c @@ -2341,7 +2341,7 @@ static int encap_bypass_if_local(struct sk_buff *skb, struct net_device *dev, DEV_STATS_INC(dev, tx_errors); vxlan_vnifilter_count(vxlan, vni, NULL, VXLAN_VNI_STATS_TX_ERRORS, 0); - kfree_skb(skb); + kfree_skb_reason(skb, SKB_DROP_REASON_VXLAN_INVALID_HDR); return -ENOENT; }