inetpeer: Invalidate the inetpeer tree along with the routing cache
[cascardo/linux.git] / net / ipv4 / route.c
index bcacf54..23ce0c1 100644 (file)
@@ -938,6 +938,7 @@ static void rt_cache_invalidate(struct net *net)
        get_random_bytes(&shuffle, sizeof(shuffle));
        atomic_add(shuffle + 1U, &net->ipv4.rt_genid);
        redirect_genid++;
+       inetpeer_invalidate_tree(AF_INET);
 }
 
 /*