aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2014-10-20 16:42:45 -0400
committerDavid S. Miller <davem@davemloft.net>2014-10-24 00:14:39 -0400
commit367efcb932c1cfc134d5b1fd9db8665ae5e6a251 (patch)
tree81a13422d8797e22e2009d5e445f3dc30237db02 /net/lapb/lapb_iface.c
parent94c77bb41d871deb848e5011aacb5d7c24358ddd (diff)
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 <davem@davemloft.net> Cc: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions