From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radu Nicolau Subject: [RFC PATCH 1/5] mbuff: added security offload flags Date: Fri, 25 Aug 2017 15:57:22 +0100 Message-ID: <1503673046-30651-2-git-send-email-radu.nicolau@intel.com> References: <1503673046-30651-1-git-send-email-radu.nicolau@intel.com> Cc: Radu Nicolau To: dev@dpdk.org Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id B02467D06 for ; Fri, 25 Aug 2017 17:01:15 +0200 (CEST) In-Reply-To: <1503673046-30651-1-git-send-email-radu.nicolau@intel.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" Signed-off-by: Radu Nicolau --- lib/librte_mbuf/rte_mbuf.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index eaed7ee..6a77270 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -189,11 +189,27 @@ extern "C" { */ #define PKT_RX_TIMESTAMP (1ULL << 17) +/** + * Indicate that security offload processing was applied on the RX packet. + */ +#define PKT_RX_SECURITY_OFFLOAD (1ULL << 18) + +/** + * Indicate that security offload processing failed on the RX packet. + */ +#define PKT_RX_SECURITY_OFFLOAD_FAILED (1ULL << 19) + + /* add new RX flags here */ /* add new TX flags here */ /** + * Request security offload processing on the TX packet. + */ +#define PKT_TX_SECURITY_OFFLOAD (1ULL << 43) + +/** * Offload the MACsec. This flag must be set by the application to enable * this offload feature for a packet to be transmitted. */ @@ -316,7 +332,8 @@ extern "C" { PKT_TX_QINQ_PKT | \ PKT_TX_VLAN_PKT | \ PKT_TX_TUNNEL_MASK | \ - PKT_TX_MACSEC) + PKT_TX_MACSEC | \ + PKT_TX_SECURITY_OFFLOAD) #define __RESERVED (1ULL << 61) /**< reserved for future mbuf use */ -- 2.7.5