]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-jobstats/main.c
ethdev: use constants for link state
[dpdk.git] / examples / l2fwd-jobstats / main.c
index d1e9bf7cea7346f35fdba14313090744e2cd76b9..9f3a77d2ea1b96678940e6c7eac32cc2b0fe9182 100644 (file)
@@ -746,7 +746,7 @@ check_all_ports_link_status(uint8_t port_num, uint32_t port_mask)
                                continue;
                        }
                        /* clear all_ports_up flag if any link down */
                                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;
                        }
                                all_ports_up = 0;
                                break;
                        }