net/mlx5: fix link status behavior
[dpdk.git] / drivers / net / mlx5 / mlx5.c
index a2acac7..95dd494 100644 (file)
@@ -962,7 +962,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
                /* Bring Ethernet device up. */
                DRV_LOG(DEBUG, "port %u forcing Ethernet interface up",
                        eth_dev->data->port_id);
-               mlx5_set_flags(eth_dev, ~IFF_UP, IFF_UP);
+               mlx5_set_link_up(eth_dev);
                /* Store device configuration on private structure. */
                priv->config = config;
                continue;