]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-cat/l2fwd-cat.c
examples: take promiscuous mode switch result into account
[dpdk.git] / examples / l2fwd-cat / l2fwd-cat.c
index b34b40a006d19fae4a27ce8baf2fdb75298476d5..b15f0330b84f05e7c6600568401aa19bb08db48a 100644 (file)
@@ -83,7 +83,9 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)
                        addr.addr_bytes[4], addr.addr_bytes[5]);
 
        /* Enable RX in promiscuous mode for the Ethernet device. */
-       rte_eth_promiscuous_enable(port);
+       retval = rte_eth_promiscuous_enable(port);
+       if (retval != 0)
+               return retval;
 
        return 0;
 }