From: Martin KaFai Lau Date: Mon, 20 Oct 2014 20:42:45 +0000 (-0700) Subject: ipv6: Avoid redoing fib6_lookup() with reachable = 0 by saving fn X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~356^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=367efcb932c1cfc134d5b1fd9db8665ae5e6a251;p=pandora-kernel.git ipv6: Avoid redoing fib6_lookup() with reachable = 0 by saving fn This patch save the fn before doing rt6_backtrack. Hence, without redo-ing the fib6_lookup(), saved_fn can be used to redo rt6_select() with RT6_LOOKUP_F_REACHABLE off. Some minor changes I think make sense to review as a single patch: * Remove the 'out:' goto label. * Remove the 'reachable' variable. Only use the 'strict' variable instead. After this patch, "failing ip6_ins_rt()" should be the only case that requires a redo of fib6_lookup(). Cc: David Miller Cc: Hannes Frederic Sowa Signed-off-by: Martin KaFai Lau Signed-off-by: David S. Miller --- Reading git-diff-tree failed