]> git.droids-corp.org - dpdk.git/blobdiff - examples/link_status_interrupt/main.c
mk: fix build dependency of drivers on pmdinfogen
[dpdk.git] / examples / link_status_interrupt / main.c
index cbc29bc6c24c58109b0087bec3c6819794a2d3d8..04dc3e40660f9b6ffb3fc747e59febaa9fad9f9e 100644 (file)
@@ -523,7 +523,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;
                        }
@@ -580,9 +580,6 @@ main(int argc, char **argv)
        if (nb_ports == 0)
                rte_panic("No Ethernet port - bye\n");
 
-       if (nb_ports > RTE_MAX_ETHPORTS)
-               nb_ports = RTE_MAX_ETHPORTS;
-
        /*
         * Each logical core is assigned a dedicated TX queue on each port.
         */