[dpdk-dev] [PATCH 2/6] Subjet: ethdev: add common code to atomicly access link

2014-05-15 Thread Ivan Boule
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

[dpdk-dev] [PATCH 2/6] Subjet: ethdev: add common code to atomicly access link

2014-05-14 Thread Stephen Hemminger
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