From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 5AD9D1CF7D for ; Fri, 6 Apr 2018 20:52:52 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Apr 2018 11:52:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,416,1517904000"; d="scan'208";a="189275811" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by orsmga004.jf.intel.com with ESMTP; 06 Apr 2018 11:52:50 -0700 From: Fiona Trahe To: dev@dpdk.org, pablo.de.lara.guarch@intel.com Cc: fiona.trahe@intel.com, tomaszx.jozwiak@intel.com Date: Fri, 6 Apr 2018 19:52:05 +0100 Message-Id: <1523040732-3290-24-git-send-email-fiona.trahe@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1523040732-3290-1-git-send-email-fiona.trahe@intel.com> References: <1523040732-3290-1-git-send-email-fiona.trahe@intel.com> Subject: [dpdk-dev] [PATCH 23/30] crypto/qat: rename functions which depend on cryptodev 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: Fri, 06 Apr 2018 18:52:53 -0000 Rename all device functions which depend on cryptodev structs. Signed-off-by: Fiona Trahe --- drivers/crypto/qat/qat_device.c | 8 ++++---- drivers/crypto/qat/qat_device.h | 8 ++++---- drivers/crypto/qat/rte_qat_cryptodev.c | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/crypto/qat/qat_device.c b/drivers/crypto/qat/qat_device.c index 4dfbc84c8..8b2ac5a5f 100644 --- a/drivers/crypto/qat/qat_device.c +++ b/drivers/crypto/qat/qat_device.c @@ -24,25 +24,25 @@ struct qat_gen_hw_data qp_gen_config[] = { static struct qat_pci_device qat_pci_devices[QAT_MAX_PCI_DEVICES]; static int qat_nb_pci_devices; -int qat_dev_config(__rte_unused struct rte_cryptodev *dev, +int qat_sym_dev_config(__rte_unused struct rte_cryptodev *dev, __rte_unused struct rte_cryptodev_config *config) { PMD_INIT_FUNC_TRACE(); return 0; } -int qat_dev_start(__rte_unused struct rte_cryptodev *dev) +int qat_sym_dev_start(__rte_unused struct rte_cryptodev *dev) { PMD_INIT_FUNC_TRACE(); return 0; } -void qat_dev_stop(__rte_unused struct rte_cryptodev *dev) +void qat_sym_dev_stop(__rte_unused struct rte_cryptodev *dev) { PMD_INIT_FUNC_TRACE(); } -int qat_dev_close(struct rte_cryptodev *dev) +int qat_sym_dev_close(struct rte_cryptodev *dev) { int i, ret; diff --git a/drivers/crypto/qat/qat_device.h b/drivers/crypto/qat/qat_device.h index d1615e2a7..5424a9a94 100644 --- a/drivers/crypto/qat/qat_device.h +++ b/drivers/crypto/qat/qat_device.h @@ -84,11 +84,11 @@ struct qat_gen_hw_data { extern struct qat_gen_hw_data qp_gen_config[]; -int qat_dev_config(struct rte_cryptodev *dev, +int qat_sym_dev_config(struct rte_cryptodev *dev, struct rte_cryptodev_config *config); -int qat_dev_start(struct rte_cryptodev *dev); -void qat_dev_stop(struct rte_cryptodev *dev); -int qat_dev_close(struct rte_cryptodev *dev); +int qat_sym_dev_start(struct rte_cryptodev *dev); +void qat_sym_dev_stop(struct rte_cryptodev *dev); +int qat_sym_dev_close(struct rte_cryptodev *dev); void qat_sym_dev_info_get(struct rte_cryptodev *dev, struct rte_cryptodev_info *info); diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c index 6d265d5e3..adad0ebe6 100644 --- a/drivers/crypto/qat/rte_qat_cryptodev.c +++ b/drivers/crypto/qat/rte_qat_cryptodev.c @@ -29,10 +29,10 @@ static const struct rte_cryptodev_capabilities qat_gen2_sym_capabilities[] = { static struct rte_cryptodev_ops crypto_qat_ops = { /* Device related operations */ - .dev_configure = qat_dev_config, - .dev_start = qat_dev_start, - .dev_stop = qat_dev_stop, - .dev_close = qat_dev_close, + .dev_configure = qat_sym_dev_config, + .dev_start = qat_sym_dev_start, + .dev_stop = qat_sym_dev_stop, + .dev_close = qat_sym_dev_close, .dev_infos_get = qat_sym_dev_info_get, .stats_get = qat_sym_stats_get, -- 2.13.6