netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steffen Klassert <steffen.klassert@secunet.com>
To: Fan Du <fan.du@windriver.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
	herbert@gondor.hengli.com.au, davem@davemloft.net,
	netdev@vger.kernel.org
Subject: Re: [RESEND PATCH net-next] xfrm: add LINUX_MIB_XFRMACQUIREERROR statistic counter
Date: Tue, 4 Jun 2013 13:29:07 +0200	[thread overview]
Message-ID: <20130604112907.GB3109@secunet.com> (raw)
In-Reply-To: <519ACC50.5030402@windriver.com>

On Tue, May 21, 2013 at 09:22:24AM +0800, Fan Du wrote:
> Hi, Sergei
> 
> On 2013年05月20日 22:11, Sergei Shtylyov wrote:
> >Hello.
> >
> >On 20-05-2013 5:40, Fan Du wrote:
> >
> >>When host ping its peer, ICMP echo request packet triggers IPsec
> >>policy, then host negotiates SA secret with its peer. After IKE
> >>installed SA for OUT direction, but before SA for IN direction
> >>installed, host get ICMP echo reply from its peer. At the time
> >>being, the SA state for IN direction could be XFRM_STATE_ACQ,
> >>then the received packet will be dropped after adding
> >>LINUX_MIB_XFRMINSTATEINVALID statistic.
> >
> >>Adding a LINUX_MIB_XFRMACQUIREERROR statistic counter for such
> >>scenario when SA in larval state is much clearer for user than
> >>LINUX_MIB_XFRMINSTATEINVALID which indicates the SA is totally
> >>bad.
> >
> >>Signed-off-by: Fan Du <fan.du@windriver.com>
> >>---
> >>include/uapi/linux/snmp.h | 1 +
> >>net/xfrm/xfrm_input.c | 5 +++++
> >>net/xfrm/xfrm_proc.c | 1 +
> >>3 files changed, 7 insertions(+), 0 deletions(-)
> >
> >>diff --git a/include/uapi/linux/snmp.h b/include/uapi/linux/snmp.h
> >>index df2e8b4..3d072bf 100644
> >>--- a/include/uapi/linux/snmp.h
> >>+++ b/include/uapi/linux/snmp.h
> >>@@ -287,6 +287,7 @@ enum
> >>LINUX_MIB_XFRMOUTPOLERROR, /* XfrmOutPolError */
> >>LINUX_MIB_XFRMFWDHDRERROR, /* XfrmFwdHdrError*/
> >>LINUX_MIB_XFRMOUTSTATEINVALID, /* XfrmOutStateInvalid */
> >>+ LINUX_MIB_XFRMACQUIREERROR, /* XfrmAcquireError*/
> >
> >Please indent the comment with tabs and align with the above ones.
> 
> Thanks for the point, I will fix this in next round after reviewing from Steffen and others.
> 

The patch looks ok to me, please fix the indent and resend.

Thanks!

      reply	other threads:[~2013-06-04 11:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-20  1:40 [RESEND PATCH net-next] xfrm: add LINUX_MIB_XFRMACQUIREERROR statistic counter Fan Du
2013-05-20 14:11 ` Sergei Shtylyov
2013-05-21  1:22   ` Fan Du
2013-06-04 11:29     ` Steffen Klassert [this message]

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=20130604112907.GB3109@secunet.com \
    --to=steffen.klassert@secunet.com \
    --cc=davem@davemloft.net \
    --cc=fan.du@windriver.com \
    --cc=herbert@gondor.hengli.com.au \
    --cc=netdev@vger.kernel.org \
    --cc=sergei.shtylyov@cogentembedded.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).