Re: [PATCH net-next] net: core: Traverse the adjacency list from first entry

2016-10-26 Thread Ido Schimmel
On Wed, Oct 26, 2016 at 09:05:35AM -0600, David Ahern wrote: > On 10/26/16 12:39 AM, ido...@idosch.org wrote: > > From: Ido Schimmel > > > > netdev_next_lower_dev() returns NULL when we finished traversing the > > adjacency list ('iter' points to the list's head). Therefore,

Re: [PATCH net-next] net: core: Traverse the adjacency list from first entry

2016-10-26 Thread David Ahern
On 10/26/16 12:39 AM, ido...@idosch.org wrote: > From: Ido Schimmel > > netdev_next_lower_dev() returns NULL when we finished traversing the > adjacency list ('iter' points to the list's head). Therefore, we must > start traversing the list from the first entry and not its

[PATCH net-next] net: core: Traverse the adjacency list from first entry

2016-10-26 Thread idosch
From: Ido Schimmel netdev_next_lower_dev() returns NULL when we finished traversing the adjacency list ('iter' points to the list's head). Therefore, we must start traversing the list from the first entry and not its head. Fixes: 1a3f060c1a47 ("net: Introduce new api for