[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADxym3ag-fUL9KJNBd7GVHg=kiA5ZHxP6Mi+wEEQ2e_zOKp9UQ@mail.gmail.com>
Date: Wed, 26 Jan 2022 10:39:47 +0800
From: Menglong Dong <menglong8.dong@...il.com>
To: David Ahern <dsahern@...il.com>
Cc: Jakub Kicinski <kuba@...nel.org>,
Steven Rostedt <rostedt@...dmis.org>, mingo@...hat.com,
David Miller <davem@...emloft.net>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
David Ahern <dsahern@...nel.org>, pablo@...filter.org,
kadlec@...filter.org, Florian Westphal <fw@...len.de>,
Menglong Dong <imagedong@...cent.com>,
Eric Dumazet <edumazet@...gle.com>, alobakin@...me,
paulb@...dia.com, Paolo Abeni <pabeni@...hat.com>,
talalahmad@...gle.com, haokexin@...il.com,
Kees Cook <keescook@...omium.org>, memxor@...il.com,
LKML <linux-kernel@...r.kernel.org>,
netdev <netdev@...r.kernel.org>, netfilter-devel@...r.kernel.org,
coreteam@...filter.org, Cong Wang <cong.wang@...edance.com>
Subject: Re: [PATCH net-next 4/6] net: ipv4: use kfree_skb_reason() in ip_protocol_deliver_rcu()
On Wed, Jan 26, 2022 at 10:21 AM David Ahern <dsahern@...il.com> wrote:
>
> On 1/24/22 6:15 AM, menglong8.dong@...il.com wrote:
> > diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
> > index 8942d32c0657..603f77ef2170 100644
> > --- a/include/linux/skbuff.h
> > +++ b/include/linux/skbuff.h
> > @@ -328,6 +328,8 @@ enum skb_drop_reason {
>
> It would be worthwhile to document the meaning of these as you add them
> -- long description of the enum.
Yeah, I realize it later. I'll complete these documents.
>
> > SKB_DROP_REASON_IP_RPFILTER,
> > SKB_DROP_REASON_EARLY_DEMUX,
> > SKB_DROP_REASON_UNICAST_IN_L2_MULTICAST,
>
> /* xfrm policy check failed */
> > + SKB_DROP_REASON_XFRM_POLICY,
>
> /* no support for IP protocol */
> > + SKB_DROP_REASON_IP_NOPROTO,
> > SKB_DROP_REASON_MAX,
> > };
> >
>
>
> If the enum is 1:1 with an SNMP counter, just state that.
Powered by blists - more mailing lists