]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pipeline/init.c
doc: add patch dependency syntax to contributing guide
[dpdk.git] / app / test-pipeline / init.c
index 871d9fa2d290cbb1f7fa32902491859f278836af..67d54ae056c27822dbc0e7a949a1b5ee61e2afdb 100644 (file)
@@ -161,10 +161,19 @@ app_ports_check_link(void)
        for (i = 0; i < app.n_ports; i++) {
                struct rte_eth_link link;
                uint16_t port;
+               int ret;
 
                port = app.ports[i];
                memset(&link, 0, sizeof(link));
-               rte_eth_link_get_nowait(port, &link);
+               ret = rte_eth_link_get_nowait(port, &link);
+               if (ret < 0) {
+                       RTE_LOG(INFO, USER1,
+                               "Failed to get port %u link status: %s\n",
+                               port, rte_strerror(-ret));
+                       all_ports_up = 0;
+                       continue;
+               }
+
                RTE_LOG(INFO, USER1, "Port %u (%u Gbps) %s\n",
                        port,
                        link.link_speed / 1000,