From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 8B6395598 for ; Tue, 11 Oct 2016 03:14:01 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP; 10 Oct 2016 18:13:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,327,1473145200"; d="scan'208";a="18223394" Received: from sie-lab-214-036.ir.intel.com (HELO silpixa00394365.ir.intel.com) ([10.237.214.36]) by fmsmga006.fm.intel.com with ESMTP; 10 Oct 2016 18:13:45 -0700 From: Pablo de Lara To: dev@dpdk.org Cc: Pablo de Lara Date: Tue, 11 Oct 2016 02:15:05 +0100 Message-Id: <1476148505-114947-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] crypto/libcrypto: fix init function names X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2016 01:14:02 -0000 All init/uninit function names in the virtual devices have been renamed, so they finish with probe or remove, so to keep consistency, same thing should be done in this PMD. Fixes: d61f70b4c918 ("crypto/libcrypto: add driver for OpenSSL library") Signed-off-by: Pablo de Lara --- drivers/crypto/libcrypto/rte_libcrypto_pmd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/libcrypto/rte_libcrypto_pmd.c b/drivers/crypto/libcrypto/rte_libcrypto_pmd.c index 535fb57..b2c571d 100644 --- a/drivers/crypto/libcrypto/rte_libcrypto_pmd.c +++ b/drivers/crypto/libcrypto/rte_libcrypto_pmd.c @@ -42,7 +42,7 @@ #include "rte_libcrypto_pmd_private.h" -static int cryptodev_libcrypto_uninit(const char *name); +static int cryptodev_libcrypto_remove(const char *name); /*----------------------------------------------------------------------------*/ @@ -1008,13 +1008,13 @@ cryptodev_libcrypto_create(const char *name, init_error: LIBCRYPTO_LOG_ERR("driver %s: cryptodev_libcrypto_create failed", name); - cryptodev_libcrypto_uninit(crypto_dev_name); + cryptodev_libcrypto_remove(crypto_dev_name); return -EFAULT; } /** Initialise LIBCRYPTO crypto device */ static int -cryptodev_libcrypto_init(const char *name, +cryptodev_libcrypto_probe(const char *name, const char *input_args) { struct rte_crypto_vdev_init_params init_params = { @@ -1037,7 +1037,7 @@ cryptodev_libcrypto_init(const char *name, /** Uninitialise LIBCRYPTO crypto device */ static int -cryptodev_libcrypto_uninit(const char *name) +cryptodev_libcrypto_remove(const char *name) { if (name == NULL) return -EINVAL; @@ -1050,8 +1050,8 @@ cryptodev_libcrypto_uninit(const char *name) } static struct rte_vdev_driver cryptodev_libcrypto_pmd_drv = { - .probe = cryptodev_libcrypto_init, - .remove = cryptodev_libcrypto_uninit + .probe = cryptodev_libcrypto_probe, + .remove = cryptodev_libcrypto_remove }; DRIVER_REGISTER_VDEV(CRYPTODEV_NAME_LIBCRYPTO_PMD, cryptodev_libcrypto_pmd_drv); -- 2.7.4