]> git.ipfire.org Git - thirdparty/linux.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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Oct 2024 10:33:09 +0000 (11:33 +0100)
commitb71a576e452b800efeac49ecca116d954601d911
tree08401082e7cdfa6d58f6da5bdc620b356446f81c
parentd209706f562ee4fa81bdf24cf6b679c3222aa06c
net: vxlan: use kfree_skb_reason() in vxlan_xmit()

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>
drivers/net/vxlan/vxlan_core.c
include/net/dropreason-core.h