[dpdk-dev] [PATCH] security: add statistics definitions and update API
Nicolau, Radu
radu.nicolau at intel.com
Mon Sep 2 11:20:01 CEST 2019
On 8/30/2019 3:33 PM, Stephen Hemminger wrote:
> On Fri, 30 Aug 2019 10:19:20 +0100
> Radu Nicolau <radu.nicolau at intel.com> wrote:
>
>>
>> struct rte_security_ipsec_stats {
>> + uint64_t ipackets; /**< Successfully received IPsec packets. */
>> + uint64_t opackets; /**< Successfully transmitted IPsec packets.*/
>> + uint64_t ibytes; /**< Successfully received IPsec bytes. */
>> + uint64_t obytes; /**< Successfully transmitted IPsec bytes. */
>> + uint64_t ierrors; /**< IPsec packets receive/decrypt errors. */
>> + uint64_t oerrors; /**< IPsec packets transmit/encrypt errors. */
>> uint64_t reserved;
>>
>> };
> Why not a second reserved field, then it will be 8*8 64 bytes long
> which is cache aligned. And you will have a pair for future counters.
Yes, I will add a second reserved field.
More information about the dev
mailing list