X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fipsec%2Fsa.h;h=7503587b5004638a65b1b62de9c23f22f99d5859;hb=6e858b4d9244cf53505589673755ab18ac2a4a83;hp=107ebd1519df524c02fd245fc8a8ae327254035a;hpb=c99d26197c535ecda727fb1d641c2bbd27f95374;p=dpdk.git diff --git a/lib/ipsec/sa.h b/lib/ipsec/sa.h index 107ebd1519..7503587b50 100644 --- a/lib/ipsec/sa.h +++ b/lib/ipsec/sa.h @@ -122,7 +122,7 @@ struct rte_ipsec_sa { * In case of SA handled by multiple threads *sqn* cacheline * could be shared by multiple cores. * To minimise performance impact, we try to locate in a separate - * place from other frequently accesed data. + * place from other frequently accessed data. */ union { uint64_t outb; @@ -132,6 +132,15 @@ struct rte_ipsec_sa { struct replay_sqn *rsn[REPLAY_SQN_NUM]; } inb; } sqn; + /* Statistics */ + struct { + uint64_t count; + uint64_t bytes; + struct { + uint64_t count; + uint64_t authentication_failed; + } errors; + } statistics; } __rte_cache_aligned;