[dpdk-dev] [PATCH v4 02/15] ethdev: add linkstatus get/set helper functions

2018-01-16 Thread Stephen Hemminger
Many drivers are all doing copy/paste of the same code to atomically update the link status. Reduce duplication, and allow for future changes by having common function for this. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 22 +++ lib/librte_ether/rte_ethdev.h

[dpdk-dev] [PATCH v4 02/15] ethdev: add linkstatus get/set helper functions

2018-01-11 Thread Ferruh Yigit
From: Stephen Hemminger Many drivers are all doing copy/paste of the same code to atomically update the link status. Reduce duplication, and allow for future changes by having common function for this. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 36 ++