Re: [dpdk-dev] [PATCH] net/failsafe: safer subdev iterator

2017-08-18 Thread Gaƫtan Rivet
On Thu, Aug 17, 2017 at 05:39:29PM -0700, Stephen Hemminger wrote: > On Thu, 17 Aug 2017 17:52:09 +0200 > Gaetan Rivet wrote: > > > The sub_device iterator macro should follow the general gist of the > > tailq API for an easier understanding and safer use. > > > > Once the loop has finished, the

Re: [dpdk-dev] [PATCH] net/failsafe: safer subdev iterator

2017-08-17 Thread Stephen Hemminger
On Thu, 17 Aug 2017 17:52:09 +0200 Gaetan Rivet wrote: > The sub_device iterator macro should follow the general gist of the > tailq API for an easier understanding and safer use. > > Once the loop has finished, the iterator should be set to NULL. > If no sub_device was iterated upon, the iterat

[dpdk-dev] [PATCH] net/failsafe: safer subdev iterator

2017-08-17 Thread Gaetan Rivet
The sub_device iterator macro should follow the general gist of the tailq API for an easier understanding and safer use. Once the loop has finished, the iterator should be set to NULL. If no sub_device was iterated upon, the iterator should still be NULL. Signed-off-by: Gaetan Rivet --- drivers