[Codel] Fwd: [PATCH v3 net-next 1/7] net: skb_drop_reason: add document for drop reasons
Dave Taht
dave.taht at gmail.com
Thu Feb 10 11:55:15 EST 2022
is this concept useful to us? (e.g. SKB_DROP_REASON_CONGESTION)
---------- Forwarded message ---------
From: <menglong8.dong at gmail.com>
Date: Sat, Jan 29, 2022 at 7:54 PM
Subject: [PATCH v3 net-next 1/7] net: skb_drop_reason: add document
for drop reasons
To: <dsahern at kernel.org>, <kuba at kernel.org>
Cc: <rostedt at goodmis.org>, <mingo at redhat.com>, <davem at davemloft.net>,
<yoshfuji at linux-ipv6.org>, <pablo at netfilter.org>,
<kadlec at netfilter.org>, <fw at strlen.de>, <imagedong at tencent.com>,
<edumazet at google.com>, <alobakin at pm.me>, <paulb at nvidia.com>,
<keescook at chromium.org>, <talalahmad at google.com>,
<haokexin at gmail.com>, <memxor at gmail.com>,
<linux-kernel at vger.kernel.org>, <netdev at vger.kernel.org>,
<netfilter-devel at vger.kernel.org>, <coreteam at netfilter.org>,
<cong.wang at bytedance.com>, <mengensun at tencent.com>
From: Menglong Dong <imagedong at tencent.com>
Add document for following existing drop reasons:
SKB_DROP_REASON_NOT_SPECIFIED
SKB_DROP_REASON_NO_SOCKET
SKB_DROP_REASON_PKT_TOO_SMALL
SKB_DROP_REASON_TCP_CSUM
SKB_DROP_REASON_SOCKET_FILTER
SKB_DROP_REASON_UDP_CSUM
Signed-off-by: Menglong Dong <imagedong at tencent.com>
---
include/linux/skbuff.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 8a636e678902..5c5615a487e7 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -314,12 +314,12 @@ struct sk_buff;
* used to translate the reason to string.
*/
enum skb_drop_reason {
- SKB_DROP_REASON_NOT_SPECIFIED,
- SKB_DROP_REASON_NO_SOCKET,
- SKB_DROP_REASON_PKT_TOO_SMALL,
- SKB_DROP_REASON_TCP_CSUM,
- SKB_DROP_REASON_SOCKET_FILTER,
- SKB_DROP_REASON_UDP_CSUM,
+ SKB_DROP_REASON_NOT_SPECIFIED, /* drop reason is not specified */
+ SKB_DROP_REASON_NO_SOCKET, /* socket not found */
+ SKB_DROP_REASON_PKT_TOO_SMALL, /* packet size is too small */
+ SKB_DROP_REASON_TCP_CSUM, /* TCP checksum error */
+ SKB_DROP_REASON_SOCKET_FILTER, /* dropped by socket filter */
+ SKB_DROP_REASON_UDP_CSUM, /* UDP checksum error */
SKB_DROP_REASON_MAX,
};
--
2.34.1
--
I tried to build a better future, a few times:
https://wayforward.archive.org/?site=https%3A%2F%2Fwww.icei.org
Dave Täht CEO, TekLibre, LLC
More information about the Codel
mailing list