Re: [PATCH net-next] rtnelink: Move link dump consistency check out of the loop

2017-08-13 Thread David Miller
From: Jakub Sitnicki Date: Wed, 9 Aug 2017 17:39:12 +0200 > Calls to rtnl_dump_ifinfo() are protected by RTNL lock. So are the > {list,unlist}_netdevice() calls where we bump the net->dev_base_seq > number. > > For this reason net->dev_base_seq can't change under out feet while > we're looping

[PATCH net-next] rtnelink: Move link dump consistency check out of the loop

2017-08-09 Thread Jakub Sitnicki
Calls to rtnl_dump_ifinfo() are protected by RTNL lock. So are the {list,unlist}_netdevice() calls where we bump the net->dev_base_seq number. For this reason net->dev_base_seq can't change under out feet while we're looping over links in rtnl_dump_ifinfo(). So move the check for net->dev_base_seq