From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 8EE254C81 for ; Wed, 28 Feb 2018 15:00:13 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2018 06:00:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,405,1515484800"; d="scan'208";a="20981048" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by fmsmga008.fm.intel.com with ESMTP; 28 Feb 2018 06:00:06 -0800 From: Pablo de Lara To: fiona.trahe@intel.com, Shally.Verma@cavium.com, ahmed.mansour@nxp.com, lee.daly@intel.com, tomaszx.jozwiak@intel.com Cc: dev@dpdk.org, Pablo de Lara Date: Wed, 28 Feb 2018 14:00:06 +0000 Message-Id: <20180228140010.27251-2-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180228140010.27251-1-pablo.de.lara.guarch@intel.com> References: <20180228140010.27251-1-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH 1/5] compressdev: add const for xform in session init 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: , X-List-Received-Date: Wed, 28 Feb 2018 14:00:14 -0000 Signed-off-by: Pablo de Lara --- lib/librte_compressdev/rte_compressdev.c | 2 +- lib/librte_compressdev/rte_compressdev.h | 2 +- lib/librte_compressdev/rte_compressdev_pmd.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_compressdev/rte_compressdev.c b/lib/librte_compressdev/rte_compressdev.c index 8fc66740c..486ad9a51 100644 --- a/lib/librte_compressdev/rte_compressdev.c +++ b/lib/librte_compressdev/rte_compressdev.c @@ -650,7 +650,7 @@ rte_compressdev_info_get(uint8_t dev_id, struct rte_compressdev_info *dev_info) int __rte_experimental rte_compressdev_session_init(uint8_t dev_id, struct rte_comp_session *sess, - struct rte_comp_xform *xforms, + const struct rte_comp_xform *xforms, struct rte_mempool *mp) { struct rte_compressdev *dev; diff --git a/lib/librte_compressdev/rte_compressdev.h b/lib/librte_compressdev/rte_compressdev.h index 72390b4f2..d37e221c9 100644 --- a/lib/librte_compressdev/rte_compressdev.h +++ b/lib/librte_compressdev/rte_compressdev.h @@ -647,7 +647,7 @@ rte_compressdev_session_terminate(struct rte_comp_session *sess); int __rte_experimental rte_compressdev_session_init(uint8_t dev_id, struct rte_comp_session *sess, - struct rte_comp_xform *xforms, + const struct rte_comp_xform *xforms, struct rte_mempool *mempool); /** diff --git a/lib/librte_compressdev/rte_compressdev_pmd.h b/lib/librte_compressdev/rte_compressdev_pmd.h index 0e30cb484..1d1688a53 100644 --- a/lib/librte_compressdev/rte_compressdev_pmd.h +++ b/lib/librte_compressdev/rte_compressdev_pmd.h @@ -257,7 +257,7 @@ typedef unsigned int (*compressdev_get_session_private_size_t)( * - Returns -ENOMEM if the private session could not be allocated. */ typedef int (*compressdev_configure_session_t)(struct rte_compressdev *dev, - struct rte_comp_xform *xform, + const struct rte_comp_xform *xform, struct rte_comp_session *session, struct rte_mempool *mp); -- 2.14.3