From: Eric Dumazet Date: Sat, 26 Nov 2011 12:13:44 +0000 (+0000) Subject: inet: add a redirect generation id in inetpeer X-Git-Tag: v3.2-rc5~56^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de68dca1816660b0d3ac89fa59ffb410007a143f;p=pandora-kernel.git inet: add a redirect generation id in inetpeer 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 Tested-by: Arkadiusz Miśkiewicz Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed