build: replace use of old build macros
[dpdk.git] / app / test-crypto-perf / main.c
index 53864ff..b9325d3 100644 (file)
@@ -9,7 +9,7 @@
 #include <rte_random.h>
 #include <rte_eal.h>
 #include <rte_cryptodev.h>
-#ifdef RTE_LIBRTE_PMD_CRYPTO_SCHEDULER
+#ifdef RTE_CRYPTO_SCHEDULER
 #include <rte_cryptodev_scheduler.h>
 #endif
 
@@ -156,7 +156,7 @@ cperf_initialize_cryptodev(struct cperf_options *opts, uint8_t *enabled_cdevs)
                if (sess_size > max_sess_size)
                        max_sess_size = sess_size;
        }
-#ifdef RTE_LIBRTE_SECURITY
+#ifdef RTE_LIB_SECURITY
        for (cdev_id = 0; cdev_id < rte_cryptodev_count(); cdev_id++) {
                sess_size = rte_security_session_get_size(
                                rte_cryptodev_get_sec_ctx(cdev_id));
@@ -177,7 +177,7 @@ cperf_initialize_cryptodev(struct cperf_options *opts, uint8_t *enabled_cdevs)
        for (i = 0; i < enabled_cdev_count &&
                        i < RTE_CRYPTO_MAX_DEVS; i++) {
                cdev_id = enabled_cdevs[i];
-#ifdef RTE_LIBRTE_PMD_CRYPTO_SCHEDULER
+#ifdef RTE_CRYPTO_SCHEDULER
                /*
                 * If multi-core scheduler is used, limit the number
                 * of queue pairs to 1, as there is no way to know
@@ -245,7 +245,7 @@ cperf_initialize_cryptodev(struct cperf_options *opts, uint8_t *enabled_cdevs)
                 */
                if (!strcmp((const char *)opts->device_type,
                                        "crypto_scheduler")) {
-#ifdef RTE_LIBRTE_PMD_CRYPTO_SCHEDULER
+#ifdef RTE_CRYPTO_SCHEDULER
                        uint32_t nb_slaves =
                                rte_cryptodev_scheduler_workers_get(cdev_id,
                                                                NULL);