[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <244fae2e-bd5b-a46a-20ea-b294d45763ff@kernel.org>
Date: Wed, 16 Feb 2022 21:07:34 -0700
From: David Ahern <dsahern@...nel.org>
To: menglong8.dong@...il.com, kuba@...nel.org
Cc: edumazet@...gle.com, davem@...emloft.net, rostedt@...dmis.org,
mingo@...hat.com, yoshfuji@...ux-ipv6.org, ast@...nel.org,
daniel@...earbox.net, hawk@...nel.org, john.fastabend@...il.com,
imagedong@...cent.com, talalahmad@...gle.com,
keescook@...omium.org, ilias.apalodimas@...aro.org, alobakin@...me,
memxor@...il.com, atenart@...nel.org, bigeasy@...utronix.de,
pabeni@...hat.com, linyunsheng@...wei.com, arnd@...db.de,
yajun.deng@...ux.dev, roopa@...dia.com, willemb@...gle.com,
vvs@...tuozzo.com, cong.wang@...edance.com,
luiz.von.dentz@...el.com, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, bpf@...r.kernel.org, flyingpeng@...cent.com
Subject: Re: [PATCH net-next 3/9] net: tcp: use kfree_skb_reason() for
tcp_v6_rcv()
On 2/15/22 8:54 PM, menglong8.dong@...il.com wrote:
> @@ -1779,13 +1789,17 @@ INDIRECT_CALLABLE_SCOPE int tcp_v6_rcv(struct sk_buff *skb)
> return ret ? -1 : 0;
>
> no_tcp_socket:
> - if (!xfrm6_policy_check(NULL, XFRM_POLICY_IN, skb))
> + drop_reason = SKB_DROP_REASON_NO_SOCKET;
> + if (!xfrm6_policy_check(NULL, XFRM_POLICY_IN, skb)) {
> + drop_reason = SKB_DROP_REASON_XFRM_POLICY;
same here. First failure takes precedence.
Powered by blists - more mailing lists