net/mlx5: move Linux-specific functions
[dpdk.git] / drivers / net / dpaa2 / dpaa2_ethdev.c
index d9960b0..2f031ec 100644 (file)
@@ -284,6 +284,13 @@ dpaa2_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
        dev_info->default_txportconf.ring_size = CONG_ENTER_TX_THRESHOLD;
        dev_info->default_rxportconf.ring_size = DPAA2_RX_DEFAULT_NBDESC;
 
+       if (dpaa2_svr_family == SVR_LX2160A) {
+               dev_info->speed_capa |= ETH_LINK_SPEED_25G |
+                               ETH_LINK_SPEED_40G |
+                               ETH_LINK_SPEED_50G |
+                               ETH_LINK_SPEED_100G;
+       }
+
        return 0;
 }
 
@@ -2336,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 */