]> git.droids-corp.org - dpdk.git/commitdiff
bus/fslmc: fix undefined reference of memsegs
authorHemant Agrawal <hemant.agrawal@nxp.com>
Mon, 27 Aug 2018 08:52:23 +0000 (14:22 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 27 Aug 2018 12:14:27 +0000 (14:14 +0200)
This patch fix the undefined reference issue with rte_dpaa2_memsegs
when compiled in shared lib mode with EXTRA_CFLAGS="-g -O0"

Bugzilla ID: 61
Fixes: 365fb925d3b3 ("bus/fslmc: optimize physical to virtual address search")
Cc: stable@dpdk.org
Reported-by: Keith Wiles <keith.wiles@intel.com>
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c
drivers/bus/fslmc/rte_bus_fslmc_version.map
drivers/mempool/dpaa2/dpaa2_hw_mempool.c
drivers/mempool/dpaa2/rte_mempool_dpaa2_version.map

index 39c5adf9068647a08ec0b8c39b6b883ce81cdc6f..db49d637f546967d036b300d2550152368c24d72 100644 (file)
 #include "portal/dpaa2_hw_pvt.h"
 #include "portal/dpaa2_hw_dpio.h"
 
+/* List of all the memseg information locally maintained in dpaa2 driver. This
+ * is to optimize the PA_to_VA searches until a better mechanism (algo) is
+ * available.
+ */
+struct dpaa2_memseg_list rte_dpaa2_memsegs
+       = TAILQ_HEAD_INITIALIZER(rte_dpaa2_memsegs);
+
 TAILQ_HEAD(dpbp_dev_list, dpaa2_dpbp_dev);
 static struct dpbp_dev_list dpbp_dev_list
        = TAILQ_HEAD_INITIALIZER(dpbp_dev_list); /*!< DPBP device list */
index fe45a1136efd03123b1c61259c36a17c52d6ff64..b4a881704e20ff6960612f2cb71fb1b7dc4dcbe5 100644 (file)
@@ -114,5 +114,6 @@ DPDK_18.05 {
        dpdmai_open;
        dpdmai_set_rx_queue;
        rte_dpaa2_free_dpci_dev;
+       rte_dpaa2_memsegs;
 
 } DPDK_18.02;
index 7d0435f51887ead8312b2ab0483a0f817abfbc9b..84ff12811519172c39ab32bcae8776c148af717d 100644 (file)
 struct dpaa2_bp_info rte_dpaa2_bpid_info[MAX_BPID];
 static struct dpaa2_bp_list *h_bp_list;
 
-/* List of all the memseg information locally maintained in dpaa2 driver. This
- * is to optimize the PA_to_VA searches until a better mechanism (algo) is
- * available.
- */
-struct dpaa2_memseg_list rte_dpaa2_memsegs
-       = TAILQ_HEAD_INITIALIZER(rte_dpaa2_memsegs);
-
 /* Dynamic logging identified for mempool */
 int dpaa2_logtype_mempool;
 
index b9d996a629576c82632126d9af005152103258ac..b45e7a9ac16a815ee83ffbf8097f23fb9bf3cfda 100644 (file)
@@ -3,7 +3,6 @@ DPDK_17.05 {
 
        rte_dpaa2_bpid_info;
        rte_dpaa2_mbuf_alloc_bulk;
-       rte_dpaa2_memsegs;
 
        local: *;
 };