]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/sample_app_ug/rxtx_callbacks.rst
ethdev: change promiscuous mode controllers to return errors
[dpdk.git] / doc / guides / sample_app_ug / rxtx_callbacks.rst
index 32c120992facdb287fe41a8b319a7afebc6d84a9..0a69ec71abc36de4ab1d8496b893461e84f27fab 100644 (file)
@@ -117,8 +117,9 @@ comments:
             return retval;
 
         /* 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;
 
         /* Add the callbacks for RX and TX.*/
         rte_eth_add_rx_callback(port, 0, add_timestamps, NULL);