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

2018-01-11 Thread Ferruh Yigit
On 1/9/2018 4:29 PM, Stephen Hemminger wrote: > On Tue, 9 Jan 2018 13:30:46 +0300 > Andrew Rybchenko wrote: > >> On 01/08/2018 08:45 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

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

2018-01-09 Thread Stephen Hemminger
On Tue, 9 Jan 2018 13:30:46 +0300 Andrew Rybchenko wrote: > On 01/08/2018 08:45 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

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

2018-01-09 Thread Andrew Rybchenko
On 01/08/2018 08:45 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 v3 02/15] ethdev: add linkstatus get/set helper functions

2018-01-08 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 | 36 lib/libr