From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radu Nicolau Subject: Re: [PATCH 06/11] ethdev: extend ethdev to support security APIs Date: Fri, 22 Sep 2017 12:49:42 +0100 Message-ID: <6fc0bd4b-8aa8-3cb8-804f-47cf99998af7@intel.com> References: <20170914082651.26232-1-akhil.goyal@nxp.com> <20170914082651.26232-7-akhil.goyal@nxp.com> <20170918075721.GA7658@jerin> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, declan.doherty@intel.com, pablo.de.lara.guarch@intel.com, hemant.agrawal@nxp.com, borisp@mellanox.com, aviadye@mellanox.com, thomas@monjalon.net, sandeep.malik@nxp.com To: Jerin Jacob , Akhil Goyal Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 97639DE3 for ; Fri, 22 Sep 2017 13:49:46 +0200 (CEST) In-Reply-To: <20170918075721.GA7658@jerin> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, On 9/18/2017 8:57 AM, Jerin Jacob wrote: > -----Original Message----- >> Date: Thu, 14 Sep 2017 13:56:46 +0530 >> From: Akhil Goyal >> To: dev@dpdk.org >> CC: declan.doherty@intel.com, pablo.de.lara.guarch@intel.com, >> hemant.agrawal@nxp.com, radu.nicolau@intel.com, borisp@mellanox.com, >> aviadye@mellanox.com, thomas@monjalon.net, sandeep.malik@nxp.com, >> jerin.jacob@caviumnetworks.com >> Subject: [PATCH 06/11] ethdev: extend ethdev to support security APIs >> X-Mailer: git-send-email 2.9.3 >> >> From: Declan Doherty >> /** >> @@ -907,6 +912,7 @@ struct rte_eth_conf { >> #define DEV_RX_OFFLOAD_QINQ_STRIP 0x00000020 >> #define DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM 0x00000040 >> #define DEV_RX_OFFLOAD_MACSEC_STRIP 0x00000080 >> +#define DEV_RX_OFFLOAD_SECURITY 0x00000100 >> >> /** >> * TX offload capabilities of a device. >> @@ -926,6 +932,11 @@ struct rte_eth_conf { >> #define DEV_TX_OFFLOAD_GENEVE_TNL_TSO 0x00001000 /**< Used for tunneling packet. */ >> #define DEV_TX_OFFLOAD_MACSEC_INSERT 0x00002000 >> #define DEV_TX_OFFLOAD_MT_LOCKFREE 0x00004000 >> +#define DEV_TX_OFFLOAD_SECURITY 0x00008000 > For the documentation side, Sharing the same views as Shahaf's > >> +#define DEV_TX_OFFLOAD_SEC_NEED_MDATA 0x00010000 > If i understand correctly, it is more of a fixup if driver needs.I guess > we can change to negative logic reflect it as offload. I can make a point for positive logic: if there is no need to update the mdata then neither PMD nor app need to do anything. If there is, the PMD needs to set the flag and the app needs to check it. > >> +#define DEV_TX_OFFLOAD_IPSEC_CRYPTO_HW_TRAILER 0x00020000 >> +#define DEV_TX_OFFLOAD_IPSEC_CRYPTO_TSO 0x00040000 >> +#define DEV_TX_OFFLOAD_IPSEC_CRYPTO_CKSUM 0x00080000 >> /**< Multiple threads can invoke rte_eth_tx_burst() concurrently on the same >> * tx queue without SW lock. >> */ > The above text should come after DEV_TX_OFFLOAD_MT_LOCKFREE(Position got > changed in this patch) Thanks, will fix. > >> @@ -1651,6 +1662,9 @@ struct rte_eth_dev { >> enum rte_eth_dev_state state; /**< Flag indicating the port state */ >> } __rte_cache_aligned; >>