]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/dpaa2/dpaa2_ethdev.c
net/mlx5: move Linux-specific functions
[dpdk.git] / drivers / net / dpaa2 / dpaa2_ethdev.c
index 1bab3b064c610d58d94f52c742aa857277754290..2f031ec5c14672ff2a7b86c45fe65bb3f41fff7d 100644 (file)
@@ -2343,7 +2343,7 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
                DPAA2_PMD_ERR("Memory allocation failed for dpni device");
                return -1;
        }
-       dpni_dev->regs = rte_mcp_ptr_list[0];
+       dpni_dev->regs = dpaa2_get_mcp_ptr(MC_PORTAL_INDEX);
        eth_dev->process_private = (void *)dpni_dev;
 
        /* For secondary processes, the primary has done all the work */