diff options
author | Menglong Dong <imagedong@tencent.com> | 2022-03-04 14:00:45 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-04 12:17:11 +0000 |
commit | a568aff26ac03ee9eb1482683514914a5ec3b4c3 (patch) | |
tree | aa45bf487e0ef3bd8e049408b541ced08d0cfdf2 /include/linux/skbuff.h | |
parent | 7e726ed81e1ddd5fdc431e02b94fcfe2a9876d42 (diff) | |
download | linux-stable-a568aff26ac03ee9eb1482683514914a5ec3b4c3.tar.gz linux-stable-a568aff26ac03ee9eb1482683514914a5ec3b4c3.tar.bz2 linux-stable-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 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 7a38d0f90cef..6b14b2d297d2 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -406,6 +406,7 @@ enum skb_drop_reason { * net.rst) or RPS flow limit */ SKB_DROP_REASON_XDP, /* dropped by XDP in input path */ + SKB_DROP_REASON_TC_INGRESS, /* dropped in TC ingress HOOK */ SKB_DROP_REASON_MAX, }; |