Thomas Graf 4e985adaa5 rtnl: provide link dump consistency info
This patch adds a change sequence counter to each net namespace
which is bumped whenever a netdevice is added or removed from
the list. If such a change occurred while a link dump took place,
the dump will have the NLM_F_DUMP_INTR flag set in the first
message which has been interrupted and in all subsequent messages
of the same dump.

Note that links may still be modified or renamed while a dump is
taking place but we can guarantee for userspace to receive a
complete list of links and not miss any.

Testing:
I have added 500 VLAN netdevices to make sure the dump is split
over multiple messages. Then while continuously dumping links in
one process I also continuously deleted and re-added a dummy
netdevice in another process. Multiple dumps per seconds have
had the NLM_F_DUMP_INTR flag set.

I guess we can wait for Johannes patch to hit net-next via the
wireless tree.  I just wanted to give this some testing right away.

Signed-off-by: Thomas Graf <tgraf@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-07-01 15:39:53 -07:00
..
2011-05-25 08:46:38 -05:00
2011-06-01 21:15:38 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-06-01 15:12:28 -04:00
2011-05-05 11:10:14 -07:00
2010-12-31 10:47:46 -08:00
2011-06-21 16:06:12 -07:00
2010-06-03 03:21:52 -07:00
2011-05-24 13:50:52 -04:00
2010-10-27 11:37:32 -07:00
2011-03-31 11:26:23 -03:00
2010-10-25 13:09:45 -07:00
2010-10-27 11:37:32 -07:00
2011-05-19 16:21:22 -04:00
2011-03-31 11:26:23 -03:00
2010-06-03 03:21:52 -07:00
2011-06-22 16:09:45 -04:00
2011-05-17 14:16:58 -04:00
2011-03-31 11:26:23 -03:00
2011-01-24 15:32:47 -08:00
2010-11-24 11:16:43 -08:00
2011-06-11 16:23:59 -07:00
2011-03-01 12:35:03 -08:00
2011-03-01 12:35:03 -08:00
2011-03-31 11:26:23 -03:00
2010-11-28 11:12:20 -08:00