]> git.droids-corp.org - dpdk.git/commitdiff
remove config prefix used with make
authorThomas Monjalon <thomas@monjalon.net>
Thu, 22 Oct 2020 19:22:45 +0000 (21:22 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Oct 2020 17:25:21 +0000 (19:25 +0200)
The config options CONFIG_RTE_* are simple RTE_* defines with meson.
Now that make support is dropped, update the names in logs and comments.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: David Marchand <david.marchand@redhat.com>
17 files changed:
app/test/test_cryptodev.c
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/ixgbe/ixgbe_rxtx.c
drivers/net/sfc/sfc_ef10_essb_rx.c
lib/librte_eal/arm/include/rte_atomic_32.h
lib/librte_eal/arm/include/rte_atomic_64.h
lib/librte_eal/arm/include/rte_byteorder.h
lib/librte_eal/arm/include/rte_mcslock.h
lib/librte_eal/arm/include/rte_spinlock.h
lib/librte_eal/arm/include/rte_ticketlock.h
lib/librte_eal/common/eal_common_dynmem.c
lib/librte_eal/freebsd/eal_memory.c
lib/librte_eal/linux/eal_memory.c
lib/librte_eal/linux/eal_timer.c
lib/librte_eal/linux/eal_vfio_mp_sync.c
lib/librte_mbuf/rte_mbuf_core.h
lib/librte_rcu/rte_rcu_qsbr.h

index 384b48772ff70248a8735688e83e4ffde9eb011a..0fed124d3a4f20193ae42d9bb496eb0057d45080 100644 (file)
@@ -14022,9 +14022,7 @@ test_cryptodev_qat_raw_api(void /*argv __rte_unused, int argc __rte_unused*/)
                        RTE_STR(CRYPTODEV_NAME_QAT_SYM_PMD));
 
        if (gbl_driver_id == -1) {
-               RTE_LOG(ERR, USER1, "QAT PMD must be loaded. Check that both "
-               "CONFIG_RTE_LIBRTE_PMD_QAT and CONFIG_RTE_LIBRTE_PMD_QAT_SYM "
-               "are enabled in config file to run this testsuite.\n");
+               RTE_LOG(ERR, USER1, "QAT PMD must be loaded.\n");
                return TEST_SKIPPED;
        }
 
index 32318cfd0031544b291036f384834d50a10f7f2f..1c7d1b758d0bc3a3e9c03e0e8ec42d6037860607 100644 (file)
@@ -1255,7 +1255,7 @@ static int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)
 
        if (bp->rx_cp_nr_rings > RTE_ETHDEV_QUEUE_STAT_CNTRS) {
                PMD_DRV_LOG(ERR,
-                       "RxQ cnt %d > CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS %d\n",
+                       "RxQ cnt %d > RTE_ETHDEV_QUEUE_STAT_CNTRS %d\n",
                        bp->rx_cp_nr_rings, RTE_ETHDEV_QUEUE_STAT_CNTRS);
        }
 
index d1d3baff903834910d0030732314c0ca9415958f..5f19972031dfa0afec9309b4568cccb5933a2a80 100644 (file)
@@ -5920,7 +5920,7 @@ ixgbe_config_rss_filter(struct rte_eth_dev *dev,
        return 0;
 }
 
-/* Stubs needed for linkage when CONFIG_RTE_ARCH_PPC_64 is set */
+/* Stubs needed for linkage when RTE_ARCH_PPC_64 is set */
 #if defined(RTE_ARCH_PPC_64)
 int
 ixgbe_rx_vec_dev_conf_condition_check(struct rte_eth_dev __rte_unused *dev)
index 17e4c140f5a0a1812746fed7ca16851a1b3f76c8..97c81c823374d0d4ece98f3c4397c5bf7ad25a51 100644 (file)
@@ -47,7 +47,7 @@
  * Each HW Rx descriptor has many Rx buffers. The number of buffers
  * in one HW Rx descriptor is equal to size of contiguous block
  * provided by Rx buffers memory pool. The contiguous block size
- * depends on CONFIG_RTE_DRIVER_MEMPOOL_BUCKET_SIZE_KB and rte_mbuf
+ * depends on RTE_DRIVER_MEMPOOL_BUCKET_SIZE_KB and rte_mbuf
  * data size specified on the memory pool creation. Typical rte_mbuf
  * data size is about 2k which makes a bit less than 32 buffers in
  * contiguous block with default bucket size equal to 64k.
index fe48ab428e881189b1a33a9edd6e2102e3fd62bd..c00ab78dba11bb987cbd2b603e408c45ff88d772 100644 (file)
@@ -6,7 +6,7 @@
 #define _RTE_ATOMIC_ARM32_H_
 
 #ifndef RTE_FORCE_INTRINSICS
-#  error Platform must be built with CONFIG_RTE_FORCE_INTRINSICS
+#  error Platform must be built with RTE_FORCE_INTRINSICS
 #endif
 
 #ifdef __cplusplus
index 20dd6c75dd8123cb8ad070ca2df09dd86b07acd7..2cef88629c39ac52e66dde30e7698334b1aec948 100644 (file)
@@ -7,7 +7,7 @@
 #define _RTE_ATOMIC_ARM64_H_
 
 #ifndef RTE_FORCE_INTRINSICS
-#  error Platform must be built with CONFIG_RTE_FORCE_INTRINSICS
+#  error Platform must be built with RTE_FORCE_INTRINSICS
 #endif
 
 #ifdef __cplusplus
index 9ec4a97508115d91382b4dada163157687b23179..df2f1d87ba80a1f2ba3360d7ed4aff9106a10c7f 100644 (file)
@@ -6,7 +6,7 @@
 #define _RTE_BYTEORDER_ARM_H_
 
 #ifndef RTE_FORCE_INTRINSICS
-#  error Platform must be built with CONFIG_RTE_FORCE_INTRINSICS
+#  error Platform must be built with RTE_FORCE_INTRINSICS
 #endif
 
 #ifdef __cplusplus
index dd1fe135ba989257c1095faa5ca97666776faf12..896d6780735f6d4c339bfe2f969763da34f26442 100644 (file)
@@ -6,7 +6,7 @@
 #define _RTE_MCSLOCK_ARM_H_
 
 #ifndef RTE_FORCE_INTRINSICS
-#  error Platform must be built with CONFIG_RTE_FORCE_INTRINSICS
+#  error Platform must be built with RTE_FORCE_INTRINSICS
 #endif
 
 #ifdef __cplusplus
index 1a6916b6e85dcfa47531648674e4c7267b694131..a973763c231cc11a37694c33c6240be599875da9 100644 (file)
@@ -6,7 +6,7 @@
 #define _RTE_SPINLOCK_ARM_H_
 
 #ifndef RTE_FORCE_INTRINSICS
-#  error Platform must be built with CONFIG_RTE_FORCE_INTRINSICS
+#  error Platform must be built with RTE_FORCE_INTRINSICS
 #endif
 
 #ifdef __cplusplus
index e09fbd6a65a32010f1ae9c33afd846482af7c033..e66beefbe2c4c709c01da84bf361c5c8a6ca1bf3 100644 (file)
@@ -6,7 +6,7 @@
 #define _RTE_TICKETLOCK_ARM_H_
 
 #ifndef RTE_FORCE_INTRINSICS
-#  error Platform must be built with CONFIG_RTE_FORCE_INTRINSICS
+#  error Platform must be built with RTE_FORCE_INTRINSICS
 #endif
 
 #ifdef __cplusplus
index 1cefe52443c412917bd489656061a409694e2a78..7c5437ddfaafab6fec6bd219a697519f7a3907c9 100644 (file)
@@ -120,7 +120,7 @@ eal_dynmem_memseg_lists_init(void)
 
        if (max_seglists_per_type == 0) {
                RTE_LOG(ERR, EAL, "Cannot accommodate all memory types, please increase %s\n",
-                       RTE_STR(CONFIG_RTE_MAX_MEMSEG_LISTS));
+                       RTE_STR(RTE_MAX_MEMSEG_LISTS));
                goto out;
        }
 
@@ -180,7 +180,7 @@ eal_dynmem_memseg_lists_init(void)
                        if (msl_idx >= RTE_MAX_MEMSEG_LISTS) {
                                RTE_LOG(ERR, EAL,
                                        "No more space in memseg lists, please increase %s\n",
-                                       RTE_STR(CONFIG_RTE_MAX_MEMSEG_LISTS));
+                                       RTE_STR(RTE_MAX_MEMSEG_LISTS));
                                goto out;
                        }
                        msl = &mcfg->memsegs[msl_idx++];
index 8d4b26b9b8588808f42df1524b71d1d4372290bb..78ac142b82cb5213f5b1046cb3d17a140492588a 100644 (file)
@@ -173,8 +173,8 @@ rte_eal_hugepage_init(void)
                        }
                        if (msl_idx == RTE_MAX_MEMSEG_LISTS) {
                                RTE_LOG(ERR, EAL, "Could not find space for memseg. Please increase %s and/or %s in configuration.\n",
-                                       RTE_STR(CONFIG_RTE_MAX_MEMSEG_PER_TYPE),
-                                       RTE_STR(CONFIG_RTE_MAX_MEM_MB_PER_TYPE));
+                                       RTE_STR(RTE_MAX_MEMSEG_PER_TYPE),
+                                       RTE_STR(RTE_MAX_MEM_MB_PER_TYPE));
                                return -1;
                        }
                        arr = &msl->memseg_arr;
@@ -405,7 +405,7 @@ memseg_primary_init(void)
                        if (msl_idx >= RTE_MAX_MEMSEG_LISTS) {
                                RTE_LOG(ERR, EAL,
                                        "No more space in memseg lists, please increase %s\n",
-                                       RTE_STR(CONFIG_RTE_MAX_MEMSEG_LISTS));
+                                       RTE_STR(RTE_MAX_MEMSEG_LISTS));
                                return -1;
                        }
 
index df0f07ee7e080767882e4a596d6567073a2ba88e..03a4f2dd2d5c3be955a1925be648ee817fff89c1 100644 (file)
@@ -713,8 +713,8 @@ remap_segment(struct hugepage_file *hugepages, int seg_start, int seg_end)
        }
        if (msl_idx == RTE_MAX_MEMSEG_LISTS) {
                RTE_LOG(ERR, EAL, "Could not find space for memseg. Please increase %s and/or %s in configuration.\n",
-                               RTE_STR(CONFIG_RTE_MAX_MEMSEG_PER_TYPE),
-                               RTE_STR(CONFIG_RTE_MAX_MEM_MB_PER_TYPE));
+                               RTE_STR(RTE_MAX_MEMSEG_PER_TYPE),
+                               RTE_STR(RTE_MAX_MEM_MB_PER_TYPE));
                return -1;
        }
 
@@ -963,7 +963,7 @@ prealloc_segments(struct hugepage_file *hugepages, int n_pages)
                        }
                        if (msl_idx == RTE_MAX_MEMSEG_LISTS) {
                                RTE_LOG(ERR, EAL, "Not enough space in memseg lists, please increase %s\n",
-                                       RTE_STR(CONFIG_RTE_MAX_MEMSEG_LISTS));
+                                       RTE_STR(RTE_MAX_MEMSEG_LISTS));
                                return -1;
                        }
 
@@ -1818,7 +1818,7 @@ memseg_primary_init_32(void)
                                if (msl_idx >= RTE_MAX_MEMSEG_LISTS) {
                                        RTE_LOG(ERR, EAL,
                                                "No more space in memseg lists, please increase %s\n",
-                                               RTE_STR(CONFIG_RTE_MAX_MEMSEG_LISTS));
+                                               RTE_STR(RTE_MAX_MEMSEG_LISTS));
                                        return -1;
                                }
 
index c0a67cfd7b93766b4b9611e467190bc3ef9a188b..7cf15cabac2556523e1a72ae829d913444ad8d36 100644 (file)
@@ -163,7 +163,7 @@ rte_eal_hpet_init(int make_default)
                RTE_LOG(ERR, EAL, "ERROR: Cannot mmap "DEV_HPET"!\n"
                                "Please enable CONFIG_HPET_MMAP in your kernel configuration "
                                "to allow HPET support.\n"
-                               "To run without using HPET, set CONFIG_RTE_LIBEAL_USE_HPET=n "
+                               "To run without using HPET, unset RTE_LIBEAL_USE_HPET "
                                "in your build configuration or use '--no-hpet' EAL flag.\n");
                close(fd);
                internal_conf->no_hpet = 1;
index 6254696ae5ed8283e6a59bf18b95204d8866363c..a2accfab3a3853c968208f7688b00b229002be30 100644 (file)
@@ -17,7 +17,7 @@
  * @file
  * VFIO socket for communication between primary and secondary processes.
  *
- * This file is only compiled if CONFIG_RTE_EAL_VFIO is set to "y".
+ * This file is only compiled if RTE_EAL_VFIO is set.
  */
 
 #ifdef VFIO_PRESENT
index 8f631b84cf3134165ab38dcb1965df6fc355b46a..065d87d28a21f8da772b5445a82f3a8c4228edc3 100644 (file)
@@ -495,8 +495,7 @@ struct rte_mbuf {
         * It should only be accessed using the following functions:
         * rte_mbuf_refcnt_update(), rte_mbuf_refcnt_read(), and
         * rte_mbuf_refcnt_set(). The functionality of these functions (atomic,
-        * or non-atomic) is controlled by the CONFIG_RTE_MBUF_REFCNT_ATOMIC
-        * config option.
+        * or non-atomic) is controlled by the RTE_MBUF_REFCNT_ATOMIC flag.
         */
        uint16_t refcnt;
        uint16_t nb_segs;         /**< Number of segments. */
index 376efc630b5710ac1834701e56a879705dbb7fe7..fa2b881bd0408754c65e2b56cfb4faefd74f23d6 100644 (file)
@@ -84,7 +84,7 @@ struct rte_rcu_qsbr_cnt {
         *   changes to various APIs.
         */
        uint32_t lock_cnt;
-       /**< Lock counter. Used when CONFIG_RTE_LIBRTE_RCU_DEBUG is enabled */
+       /**< Lock counter. Used when RTE_LIBRTE_RCU_DEBUG is enabled */
 } __rte_cache_aligned;
 
 #define __RTE_QSBR_CNT_THR_OFFLINE 0
@@ -383,11 +383,11 @@ rte_rcu_qsbr_thread_offline(struct rte_rcu_qsbr *v, unsigned int thread_id)
  * This API is provided to aid debugging. This should be called before
  * accessing a shared data structure.
  *
- * When CONFIG_RTE_LIBRTE_RCU_DEBUG is enabled a lock counter is incremented.
+ * When RTE_LIBRTE_RCU_DEBUG is enabled a lock counter is incremented.
  * Similarly rte_rcu_qsbr_unlock will decrement the counter. When the
  * rte_rcu_qsbr_check API will verify that this counter is 0.
  *
- * When CONFIG_RTE_LIBRTE_RCU_DEBUG is disabled, this API will do nothing.
+ * When RTE_LIBRTE_RCU_DEBUG is disabled, this API will do nothing.
  *
  * @param v
  *   QS variable
@@ -416,11 +416,11 @@ rte_rcu_qsbr_lock(__rte_unused struct rte_rcu_qsbr *v,
  * This API is provided to aid debugging. This should be called after
  * accessing a shared data structure.
  *
- * When CONFIG_RTE_LIBRTE_RCU_DEBUG is enabled, rte_rcu_qsbr_unlock will
+ * When RTE_LIBRTE_RCU_DEBUG is enabled, rte_rcu_qsbr_unlock will
  * decrement a lock counter. rte_rcu_qsbr_check API will verify that this
  * counter is 0.
  *
- * When CONFIG_RTE_LIBRTE_RCU_DEBUG is disabled, this API will do nothing.
+ * When RTE_LIBRTE_RCU_DEBUG is disabled, this API will do nothing.
  *
  * @param v
  *   QS variable