aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorEric W. Biederman <[email protected]>2015-10-12 16:02:08 +0000
committerDavid S. Miller <[email protected]>2015-10-13 11:52:40 +0000
commite332bc67cf5e5e5b71a1aec9750d0791aac65183 (patch)
tree1b867c769406705ec8b9b33e2dbfb0b8d5607e3c /net/switchdev/switchdev.c
parentswitchdev: check if the vlan id is in the proper vlan range (diff)
downloadkernel-e332bc67cf5e5e5b71a1aec9750d0791aac65183.tar.gz
kernel-e332bc67cf5e5e5b71a1aec9750d0791aac65183.zip
ipv6: Don't call with rt6_uncached_list_flush_dev
As originally written rt6_uncached_list_flush_dev makes no sense when called with dev == NULL as it attempts to flush all uncached routes regardless of network namespace when dev == NULL. Which is simply incorrect behavior. Furthermore at the point rt6_ifdown is called with dev == NULL no more network devices exist in the network namespace so even if the code in rt6_uncached_list_flush_dev were to attempt something sensible it would be meaningless. Therefore remove support in rt6_uncached_list_flush_dev for handling network devices where dev == NULL, and only call rt6_uncached_list_flush_dev when rt6_ifdown is called with a network device. Fixes: 8d0b94afdca8 ("ipv6: Keep track of DST_NOCACHE routes in case of iface down/unregister") Signed-off-by: "Eric W. Biederman" <[email protected]> Reviewed-by: Martin KaFai Lau <[email protected]> Tested-by: Martin KaFai Lau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions