]> git.droids-corp.org - dpdk.git/blobdiff - examples/performance-thread/l3fwd-thread/main.c
ethdev: use constants for link state
[dpdk.git] / examples / performance-thread / l3fwd-thread / main.c
index 61c023e66dc8233b6ccaf94aecc1554a40ffeece..15c0a4de2d70d9b403edd9ead9b5774131f7250d 100644 (file)
@@ -3408,7 +3408,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;
                        }