]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
inet: add a redirect generation id in inetpeer
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 26 Nov 2011 12:13:44 +0000 (12:13 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:56:07 +0000 (08:56 -0800)
commit9c8da5125682191090bf32917a6bfba3d711492d
tree02f5556e185a6ba177c37aa25fb42268d7ff6c53
parent427814da7d68739ec2c53a9433f62323c68ef34d
inet: add a redirect generation id in inetpeer

[ Upstream commit de68dca1816660b0d3ac89fa59ffb410007a143f ]

Now inetpeer is the place where we cache redirect information for ipv4
destinations, we must be able to invalidate informations when a route is
added/removed on host.

As inetpeer is not yet namespace aware, this patch adds a shared
redirect_genid, and a per inetpeer redirect_genid. This might be changed
later if inetpeer becomes ns aware.

Cache information for one inerpeer is valid as long as its
redirect_genid has the same value than global redirect_genid.

Reported-by: Arkadiusz Miśkiewicz <a.miskiewicz@gmail.com>
Tested-by: Arkadiusz Miśkiewicz <a.miskiewicz@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/net/inetpeer.h
net/ipv4/route.c