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

2018-01-16 Thread Andrew Rybchenko
On 01/16/2018 09:37 PM, Stephen Hemminger wrote: 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

[dpdk-dev] [PATCH v5 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