ethdev: use constants for link state
[dpdk.git] / examples / l2fwd-ivshmem / host / host.c
index 6e6ed5e..4bd7c41 100644 (file)
@@ -371,7 +371,7 @@ check_all_ports_link_status(uint8_t port_num, 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;
                        }