netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antony Antony <antony@phenome.org>
To: nicolas.dichtel@6wind.com
Cc: Sabrina Dubroca <sd@queasysnail.net>,
	antony.antony@secunet.com,
	Steffen Klassert <steffen.klassert@secunet.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	devel@linux-ipsec.org, Leon Romanovsky <leon@kernel.org>,
	Eyal Birger <eyal.birger@gmail.com>
Subject: Re: [PATCH ipsec-next v12 3/4] xfrm: Add dir validation to "in" data path lookup
Date: Fri, 26 Apr 2024 10:11:50 +0200	[thread overview]
Message-ID: <ZithxsHLhPw1ZVHM@Antony2201.local> (raw)
In-Reply-To: <80f3257c-e214-41d2-8b40-b29af32310aa@6wind.com>

On Wed, Apr 24, 2024 at 12:04:12PM +0200, Nicolas Dichtel via Devel wrote:
> Le 24/04/2024 à 10:40, Sabrina Dubroca a écrit :
> [snip]
> >>> diff --git a/Documentation/networking/xfrm_proc.rst b/Documentation/networking/xfrm_proc.rst
> >>> index c237bef03fb6..b4f4d9552dea 100644
> >>> --- a/Documentation/networking/xfrm_proc.rst
> >>> +++ b/Documentation/networking/xfrm_proc.rst
> >>> @@ -73,6 +73,9 @@ XfrmAcquireError:
> >>>  XfrmFwdHdrError:
> >>>  	Forward routing of a packet is not allowed
> >>>
> >>> +XfrmInStateDirError:
> >>> +        State direction input mismatched with lookup path direction
> >> It's a bit confusing because when this error occurs, the state direction is not
> >> 'input'.
> > 
> > Agree.
> > 
> >> This statistic is under 'Inbound errors', so may something like this is enough:
> >> 'State direction is output.'
> > 
> > Maybe something like:
> > 
> > State direction mismatch (lookup found an output state on the input path, expected input or no direction)

This is better. Fixed in v13.

> > 
> > It's a bit verbose, but I think those extra details would help users
> > understand what went wrong.
> > 
> Sure, it's ok for me.

thanks,
-antony


  reply	other threads:[~2024-04-26  8:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23 12:48 [PATCH ipsec-next v12 0/4] xfrm: Introduce direction attribute for SA Antony Antony
2024-04-23 12:49 ` [PATCH ipsec-next v12 1/4] xfrm: Add Direction to the SA in or out Antony Antony
2024-04-24  9:38   ` Sabrina Dubroca
2024-04-26  7:47     ` Antony Antony
2024-04-23 12:49 ` [PATCH ipsec-next v12 2/4] xfrm: Add dir validation to "out" data path lookup Antony Antony
2024-04-23 12:50 ` [PATCH ipsec-next v12 3/4] xfrm: Add dir validation to "in" " Antony Antony
2024-04-23 15:27   ` Nicolas Dichtel
2024-04-24  8:40     ` Sabrina Dubroca
2024-04-24 10:04       ` Nicolas Dichtel
2024-04-26  8:11         ` Antony Antony [this message]
2024-04-23 12:51 ` [PATCH ipsec-next v12 4/4] xfrm: Restrict SA direction attribute to specific netlink message types Antony Antony
2024-04-26  4:49   ` Steffen Klassert
2024-04-26  7:50     ` Antony Antony

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZithxsHLhPw1ZVHM@Antony2201.local \
    --to=antony@phenome.org \
    --cc=antony.antony@secunet.com \
    --cc=davem@davemloft.net \
    --cc=devel@linux-ipsec.org \
    --cc=edumazet@google.com \
    --cc=eyal.birger@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=kuba@kernel.org \
    --cc=leon@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nicolas.dichtel@6wind.com \
    --cc=pabeni@redhat.com \
    --cc=sd@queasysnail.net \
    --cc=steffen.klassert@secunet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).