diff options
author | Menglong Dong <imagedong@tencent.com> | 2022-03-04 07:00:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-04 13:17:11 +0100 |
commit | a568aff26ac03ee9eb1482683514914a5ec3b4c3 (patch) | |
tree | aa45bf487e0ef3bd8e049408b541ced08d0cfdf2 /net/core | |
parent | net: dev: use kfree_skb_reason() for do_xdp_generic() (diff) | |
download | linux-a568aff26ac03ee9eb1482683514914a5ec3b4c3.tar.xz linux-a568aff26ac03ee9eb1482683514914a5ec3b4c3.zip |
net: dev: use kfree_skb_reason() for sch_handle_ingress()
Replace kfree_skb() used in sch_handle_ingress() with
kfree_skb_reason(). Following drop reasons are introduced:
SKB_DROP_REASON_TC_INGRESS
Signed-off-by: Menglong Dong <imagedong@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index f449834a63df..ba7580ccee94 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5041,7 +5041,7 @@ sch_handle_ingress(struct sk_buff *skb, struct packet_type **pt_prev, int *ret, break; case TC_ACT_SHOT: mini_qdisc_qstats_cpu_drop(miniq); - kfree_skb(skb); + kfree_skb_reason(skb, SKB_DROP_REASON_TC_INGRESS); return NULL; case TC_ACT_STOLEN: case TC_ACT_QUEUED: |