net/ngbe: support Rx/Tx burst mode info
[dpdk.git] / drivers / net / mlx5 / mlx5_ethdev.c
index c32eeef..f2b78c3 100644 (file)
@@ -91,7 +91,7 @@ mlx5_dev_configure(struct rte_eth_dev *dev)
        }
 
        if ((dev->data->dev_conf.txmode.offloads &
-                       DEV_TX_OFFLOAD_SEND_ON_TIMESTAMP) &&
+                       RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP) &&
                        rte_mbuf_dyn_tx_timestamp_register(NULL, NULL) != 0) {
                DRV_LOG(ERR, "port %u cannot register Tx timestamp field/flag",
                        dev->data->port_id);
@@ -225,8 +225,8 @@ mlx5_set_default_params(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)
        info->default_txportconf.ring_size = 256;
        info->default_rxportconf.burst_size = MLX5_RX_DEFAULT_BURST;
        info->default_txportconf.burst_size = MLX5_TX_DEFAULT_BURST;
-       if ((priv->link_speed_capa & ETH_LINK_SPEED_200G) |
-               (priv->link_speed_capa & ETH_LINK_SPEED_100G)) {
+       if ((priv->link_speed_capa & RTE_ETH_LINK_SPEED_200G) |
+               (priv->link_speed_capa & RTE_ETH_LINK_SPEED_100G)) {
                info->default_rxportconf.nb_queues = 16;
                info->default_txportconf.nb_queues = 16;
                if (dev->data->nb_rx_queues > 2 ||
@@ -335,7 +335,7 @@ mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)
        if (priv->representor) {
                uint16_t port_id;
 
-               MLX5_ETH_FOREACH_DEV(port_id, priv->pci_dev) {
+               MLX5_ETH_FOREACH_DEV(port_id, dev->device) {
                        struct mlx5_priv *opriv =
                                rte_eth_devices[port_id].data->dev_private;