]> git.baikalelectronics.ru Git - kernel.git/commit
net: NETDEV_UNREGISTER_PERNET -> NETDEV_UNREGISTER_BATCH
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 29 Nov 2009 15:45:58 +0000 (15:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2009 00:15:50 +0000 (16:15 -0800)
commit56cdd2ceffb7a7193f5a8abf9a1a7aa6ecdb6619
tree10c113756ff0dcc860735d96ed141701bffa3476
parentc84e3f34c12f5ce680f8ba61cdb84b822146667a
net: NETDEV_UNREGISTER_PERNET -> NETDEV_UNREGISTER_BATCH

The motivation for an additional notifier in batched netdevice
notification (rt_do_flush) only needs to be called once per batch not
once per namespace.

For further batching improvements I need a guarantee that the
netdevices are unregistered in order allowing me to unregister an all
of the network devices in a network namespace at the same time with
the guarantee that the loopback device is really and truly
unregistered last.

Additionally it appears that we moved the route cache flush after
the final synchronize_net, which seems wrong and there was no
explanation.  So I have restored the original location of the final
synchronize_net.

Cc: Octavian Purdila <opurdila@ixiacom.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/notifier.h
include/net/route.h
net/core/dev.c
net/ipv4/fib_frontend.c
net/ipv4/route.c