2017-06-21 18:37:44

by Raj Ammanur

[permalink] [raw]
Subject: XFRM Stats

Hi Crypto/Xfrm Team,

I was wondering if there has been any discussion in the past
about adding stats in Xfrm to count the packets going in/out of
this sub-system? Right now we only have error stats.

thanks
--Raj


2017-06-22 02:42:32

by Herbert Xu

[permalink] [raw]
Subject: Re: XFRM Stats

Raj Ammanur <[email protected]> wrote:
> Hi Crypto/Xfrm Team,
>
> I was wondering if there has been any discussion in the past
> about adding stats in Xfrm to count the packets going in/out of
> this sub-system? Right now we only have error stats.

Have you looked at ip -s x s?

Cheers,
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

2017-06-22 05:20:07

by Raj Ammanur

[permalink] [raw]
Subject: Re: XFRM Stats

oops yes, completely forgot the lifetime stats. Thanks Herbert.

I will check this out, but after a rekey, are the stats still preserved?

thanks
--Raj

On Wed, Jun 21, 2017 at 7:42 PM, Herbert Xu <[email protected]> wrote:
> Raj Ammanur <[email protected]> wrote:
>> Hi Crypto/Xfrm Team,
>>
>> I was wondering if there has been any discussion in the past
>> about adding stats in Xfrm to count the packets going in/out of
>> this sub-system? Right now we only have error stats.
>
> Have you looked at ip -s x s?
>
> Cheers,
> --
> Email: Herbert Xu <[email protected]>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

2017-06-22 08:27:45

by Herbert Xu

[permalink] [raw]
Subject: Re: XFRM Stats

Raj Ammanur <[email protected]> wrote:
> oops yes, completely forgot the lifetime stats. Thanks Herbert.
>
> I will check this out, but after a rekey, are the stats still preserved?

No those stats are per-state. So your best bet would be to get this
feature added to your user-space key manager, and get it to read out
the final stats before deleting the SA.

Cheers,
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt