ipv6: Keep track of DST_NOCACHE routes in case of iface down/unregister
authorMartin KaFai Lau <kafai@fb.com>
Sat, 23 May 2015 03:56:04 +0000 (20:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 17:25:34 +0000 (13:25 -0400)
commit8d0b94afdca84598912347e61defa846a0988d04
treec5d5c80834b96e249373c840e4372100ba7f29f5
parent3da59bd94583d1239e4fbdee452265a160b9cd71
ipv6: Keep track of DST_NOCACHE routes in case of iface down/unregister

This patch keeps track of the DST_NOCACHE routes in a list and replaces its
dev with loopback during the iface down/unregister event.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/route.c