net: dev: use kfree_skb_reason() for do_xdp_generic()
authorMenglong Dong <imagedong@tencent.com>
Fri, 4 Mar 2022 06:00:44 +0000 (14:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 12:17:11 +0000 (12:17 +0000)
commit7e726ed81e1ddd5fdc431e02b94fcfe2a9876d42
treeb69798c8c8bbaa44e80274bc0637446770dc7d3f
parent44f0bd40803c0e04f1c8cd59df3c7acce783ae9c
net: dev: use kfree_skb_reason() for do_xdp_generic()

Replace kfree_skb() used in do_xdp_generic() with kfree_skb_reason().
The drop reason SKB_DROP_REASON_XDP is introduced for this case.

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/trace/events/skb.h
net/core/dev.c