Hi Stephen,
The new function rte_eth_dev_set_link() below is declared as void.
Thus, the comments about its return value are wrong, and should be removed,
unless they still refer to a desired behaviour, in which case it is the
function itself that should be reworked to invoke rte_atomic64_cmpset a
Many drivers copy/paste same code to atomicly access link information.
Add functions to do this instead.
Signed-off-by: Stephen Hemminger
--- a/lib/librte_ether/rte_ethdev.h 2014-05-14 11:27:07.409461720 -0700
+++ b/lib/librte_ether/rte_ethdev.h 2014-05-14 11:27:07.409461720 -0700
@@ -17
2 matches
Mail list logo