git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ethdev: change promiscuous mode controllers to return errors
[dpdk.git]
/
doc
/
guides
/
sample_app_ug
/
rxtx_callbacks.rst
diff --git
a/doc/guides/sample_app_ug/rxtx_callbacks.rst
b/doc/guides/sample_app_ug/rxtx_callbacks.rst
index
32c1209
..
0a69ec7
100644
(file)
--- a/
doc/guides/sample_app_ug/rxtx_callbacks.rst
+++ b/
doc/guides/sample_app_ug/rxtx_callbacks.rst
@@
-117,8
+117,9
@@
comments:
return retval;
/* Enable RX in promiscuous mode for the Ethernet device. */
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);
/* Add the callbacks for RX and TX.*/
rte_eth_add_rx_callback(port, 0, add_timestamps, NULL);