OSDN Git Service

net: skb: introduce the function kfree_skb_list_reason()
authorMenglong Dong <imagedong@tencent.com>
Fri, 4 Mar 2022 06:00:41 +0000 (14:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 12:17:11 +0000 (12:17 +0000)
commit215b0f1963d4e34fccac6992b3debe26f78a6eb8
tree6f1bd38180726481341dc5720b2e0fdbd52a881e
parent98b4d7a4e7374a44c4afd9f08330e72f6ad0d644
net: skb: introduce the function kfree_skb_list_reason()

To report reasons of skb drops, introduce the function
kfree_skb_list_reason() and make kfree_skb_list() an inline call to
it. This function will be used in the next commit in
__dev_xmit_skb().

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