]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Properly purge netdev references on uncached routes.
authorDavid S. Miller <davem@davemloft.net>
Tue, 31 Jul 2012 22:06:50 +0000 (15:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Jul 2012 22:06:50 +0000 (15:06 -0700)
commit4c2338c34b5b12c34556adf13e30f5886ccd3c5c
tree9a82e97a072e288f604bd3dbbe07e1796581fad0
parent708eef83c854660f24f16e8a07b8bcb3bfa698e7
ipv4: Properly purge netdev references on uncached routes.

When a device is unregistered, we have to purge all of the
references to it that may exist in the entire system.

If a route is uncached, we currently have no way of accomplishing
this.

So create a global list that is scanned when a network device goes
down.  This mirrors the logic in net/core/dst.c's dst_ifdown().

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h
net/ipv4/fib_frontend.c
net/ipv4/route.c
net/ipv4/xfrm4_policy.c