From patchwork Sat Nov 25 22:10:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Billy O'Mahony X-Patchwork-Id: 31668 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 56E4B2B82; Sat, 25 Nov 2017 23:10:45 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 44A902A66 for ; Sat, 25 Nov 2017 23:10:42 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Nov 2017 14:10:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,455,1505804400"; d="scan'208";a="5966364" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by FMSMGA003.fm.intel.com with ESMTP; 25 Nov 2017 14:10:40 -0800 From: Billy O'Mahony To: declan.doherty@intel.com, dev@dpdk.org Cc: Billy O'Mahony Date: Sat, 25 Nov 2017 22:10:37 +0000 Message-Id: <1511647837-19170-1-git-send-email-billy.o.mahony@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] cryptodev: Add useful comment to _sym_session 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" Signed-off-by: Billy O'Mahony Nacked-by: Billy O'Mahony --- lib/librte_cryptodev/rte_cryptodev.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index dade554..6edb468 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -890,7 +890,12 @@ rte_cryptodev_enqueue_burst(uint8_t dev_id, uint16_t qp_id, } -/** Cryptodev symmetric crypto session */ +/** Cryptodev symmetric crypto session + * Internally the crytpodev library maintains an association between the + * session and an rte_crypto_sym_xform which is specified as an argument to + * rte_cryptodev_sym_session_create(). Therefore a session has a fixed xform + * chain and each xform has a fixed algo, key, op-type, digest_len etc. + */ struct rte_cryptodev_sym_session { __extension__ void *sess_private_data[0]; /**< Private session material */