[dpdk-dev] [PATCH] security: add statistics definitions and update API
Stephen Hemminger
stephen at networkplumber.org
Fri Aug 30 16:33:27 CEST 2019
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.
More information about the dev
mailing list