crypto: normalize driver names with macros
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 8 Jul 2016 16:46:51 +0000 (17:46 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 8 Jul 2016 17:20:26 +0000 (19:20 +0200)
commitcdfb776ba266cb610add47a95580f81f5105b4ed
treeadddd63fbd4a7339aec227f00f7b1cbf17dfa44d
parentece3100b276d22e5560d2e08a7da47fb5468acad
crypto: normalize driver names with macros

Recently reported, the introduction of pmd information exports led to a
breakage of cryptodev unit tests because the test infrastructure relies on the
cryptodev names being available in macros.  This patch fixes the pmd naming to
use the macro names.  Note that the macro names were already pre-stringified,
which won't work as the PMD_REGISTER_DRIVER macro requires the name in both a
processing token and stringified form.  As such the names are defined now as
tokens, and converted where needed to stringified form on demand using RTE_STR.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
14 files changed:
app/test/test_cryptodev.c
app/test/test_cryptodev_perf.c
drivers/crypto/aesni_gcm/aesni_gcm_pmd.c
drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h
drivers/crypto/kasumi/rte_kasumi_pmd.c
drivers/crypto/kasumi/rte_kasumi_pmd_private.h
drivers/crypto/null/null_crypto_pmd.c
drivers/crypto/null/null_crypto_pmd_private.h
drivers/crypto/qat/rte_qat_cryptodev.c
drivers/crypto/snow3g/rte_snow3g_pmd.c
drivers/crypto/snow3g/rte_snow3g_pmd_private.h
lib/librte_cryptodev/rte_cryptodev.h