examples: take promiscuous mode switch result into account
[dpdk.git] / examples / packet_ordering / main.c
index a99961f..132f582 100644 (file)
@@ -330,7 +330,9 @@ configure_eth_port(uint16_t port_id)
                        addr.addr_bytes[2], addr.addr_bytes[3],
                        addr.addr_bytes[4], addr.addr_bytes[5]);
 
-       rte_eth_promiscuous_enable(port_id);
+       ret = rte_eth_promiscuous_enable(port_id);
+       if (ret != 0)
+               return ret;
 
        return 0;
 }