ethdev: use constants for link state
[dpdk.git] / app / test-pmd / testpmd.c
index 8605e62..1398c6c 100644 (file)
@@ -1641,7 +1641,7 @@ check_all_ports_link_status(uint32_t port_mask)
                                continue;
                        }
                        /* clear all_ports_up flag if any link down */
-                       if (link.link_status == 0) {
+                       if (link.link_status == ETH_LINK_DOWN) {
                                all_ports_up = 0;
                                break;
                        }