From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Pismenny Subject: [RFC 1/7] ethdev: add device ipsec encrypt/decrypt capability flags Date: Mon, 10 Jul 2017 10:35:11 +0300 Message-ID: <1499672117-56728-2-git-send-email-borisp@mellanox.com> References: <1499672117-56728-1-git-send-email-borisp@mellanox.com> Cc: aviadye@mellanox.com, borisp@mellanox.com To: dev@dpdk.org Return-path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id BA95D7CA9 for ; Mon, 10 Jul 2017 09:35:23 +0200 (CEST) In-Reply-To: <1499672117-56728-1-git-send-email-borisp@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" A PMD that presents these flags supports IPsec crypto offload. Encryption and authentication on SA entries can be offloaded to the PMD. After adding a SA to hardware, crypto can be offloaded on well-formed IPsec packets. Signed-off-by: Boris Pismenny Signed-off-by: Aviad Yehezkel --- lib/librte_ether/rte_ethdev.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 0f38b45..158b10c 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -883,6 +883,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_IPSEC_CRYPTO 0x00000100 /** * TX offload capabilities of a device. @@ -901,6 +902,9 @@ struct rte_eth_conf { #define DEV_TX_OFFLOAD_IPIP_TNL_TSO 0x00000800 /**< Used for tunneling packet. */ #define DEV_TX_OFFLOAD_GENEVE_TNL_TSO 0x00001000 /**< Used for tunneling packet. */ #define DEV_TX_OFFLOAD_MACSEC_INSERT 0x00002000 +#define DEV_TX_OFFLOAD_IPSEC_CRYPTO_HW_TRAILER 0x00004000 +#define DEV_TX_OFFLOAD_IPSEC_CRYPTO_TSO 0x00008000 +#define DEV_TX_OFFLOAD_IPSEC_CRYPTO_NEED_METADATA 0x00010000 struct rte_pci_device; -- 1.8.3.1