From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 45DBCA0613 for ; Fri, 30 Aug 2019 16:33:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CDFDF1E886; Fri, 30 Aug 2019 16:33:31 +0200 (CEST) Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by dpdk.org (Postfix) with ESMTP id 3BC6A1E87D for ; Fri, 30 Aug 2019 16:33:30 +0200 (CEST) Received: by mail-pl1-f196.google.com with SMTP id h3so3454027pls.7 for ; Fri, 30 Aug 2019 07:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MI1n3GJzxgaIXlT0o9Xqm1gmGMOrPIkLb+pQq8+DJN0=; b=wATz6rtbLLlHXeaX63PnxGEzW9gozKqnB7e4KVUERYE3Snqh/CwRPvzctUDSbtI0XE xVLxAVAhikQhGpljCI06mZhrifrjLP34NDQe95ANxBy2jEVD4rdJYEQeZ/CbmuYv7OjJ 2ew+25kdxmfWSmUGJ598jpK4q6PCs4qUjiqGNGLVdX0HZnhLxQFzQtY8bBMd8/KpcvRZ dZPlezqRzZBgF3vMmp/ci50/zOYe6RZfHiluCyJuk24QoynrRqvTTb2DIIhHfyAxFndr KKA1RO4z3YStjau5OrmAsP/+9u+k4VLBlaX9fGaHb4IdR8+Q642ggbg9uOT92T0fDvu2 7QIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MI1n3GJzxgaIXlT0o9Xqm1gmGMOrPIkLb+pQq8+DJN0=; b=JBXP5UmvP8yqtfg+laSGEIHJ15k4L1KyIg97bfn3axNBO4RGw/s02ehMLRE5Hc1Cfe 0kAa+goudh12ppvq3mdn+BquElX5pHoamzU+zRWj8xCstdv48ZqXH1XXcKy1BCJIMCj5 RzFJk/KuWy1vTgvuLBZLsvsi/AeMhByCpjCjP9bwHJk/FuqXcpgDdviP5ONJcO9XvEFY XhunBswjmq1JUPaCyu0tHyQOLCHJc+fHL8wUgOC2kCIuIKrPGaM3ZRWC7IOFW7bs6ERm 3/VBfT9hwVA6FaN9EmcZ2rAltfnE+F5vf1emVAsJtbcvaMI5WXSmdaaTOk8ovNRhiVzk urkA== X-Gm-Message-State: APjAAAUkEJEKc42h3maaRaDWUErzEmS3m2xSKxfsT9K29I2r9fQp6kCa rZjmvMe51TRJFiTDt6CoMNoYXA== X-Google-Smtp-Source: APXvYqwBQSiI8zDAdV15T4PeOL+iCVsq67ARqbDpA35AVuvYw9b3aBT4ivXNsnZrQAMO2Yoc5sjxbw== X-Received: by 2002:a17:902:6b4c:: with SMTP id g12mr15804002plt.118.1567175609309; Fri, 30 Aug 2019 07:33:29 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id n9sm2375468pgf.64.2019.08.30.07.33.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2019 07:33:29 -0700 (PDT) Date: Fri, 30 Aug 2019 07:33:27 -0700 From: Stephen Hemminger To: Radu Nicolau Cc: dev@dpdk.org, akhil.goyal@nxp.com, konstantin.ananyev@intel.com, bernard.iremonger@intel.com, declan.doherty@intel.com Message-ID: <20190830073327.71b0a997@hermes.lan> In-Reply-To: <1567156760-29520-1-git-send-email-radu.nicolau@intel.com> References: <1567156760-29520-1-git-send-email-radu.nicolau@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] security: add statistics definitions and update API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, 30 Aug 2019 10:19:20 +0100 Radu Nicolau 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.