]> git.droids-corp.org - dpdk.git/commitdiff
net/bnxt: skip wait for link up on port start
authorSomnath Kotur <somnath.kotur@broadcom.com>
Wed, 27 Apr 2022 14:58:21 +0000 (20:28 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 10 May 2022 05:14:41 +0000 (07:14 +0200)
Invoking bnxt_link_update_op() with wait_for_completion set would
result in the driver waiting for 10s in case the port link is down to
complete port initialization (dev_start_op()).
Change it by not waiting for the completion when invoking it in
dev_start_op()

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c

index abcb534af66652a954bd5f6edb10e032ba5bb335..0f0f40b95b151d2f97285d5ea1cdcd4c85e297c6 100644 (file)
@@ -1608,7 +1608,7 @@ int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)
 
        eth_dev->data->dev_started = 1;
 
-       bnxt_link_update_op(eth_dev, 1);
+       bnxt_link_update_op(eth_dev, 0);
 
        if (rx_offloads & RTE_ETH_RX_OFFLOAD_VLAN_FILTER)
                vlan_mask |= RTE_ETH_VLAN_FILTER_MASK;