netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipv4: do not ignore route errors
@ 2011-03-25 23:45 Julian Anastasov
  2011-03-26  3:33 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Julian Anastasov @ 2011-03-25 23:45 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

	The "ipv4: Inline fib_semantic_match into check_leaf"
change forgets to return the route errors. check_leaf should
return the same results as fib_table_lookup.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
---
 net/ipv4/fib_trie.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -urp net-2.6-fcd13f4/linux/net/ipv4/fib_trie.c linux/net/ipv4/fib_trie.c
--- net-2.6-fcd13f4/linux/net/ipv4/fib_trie.c	2011-03-25 22:33:44.000000000 +0200
+++ linux/net/ipv4/fib_trie.c	2011-03-26 01:37:15.027383449 +0200
@@ -1365,9 +1365,9 @@ static int check_leaf(struct fib_table *
 			err = fib_props[fa->fa_type].error;
 			if (err) {
 #ifdef CONFIG_IP_FIB_TRIE_STATS
-				t->stats.semantic_match_miss++;
+				t->stats.semantic_match_passed++;
 #endif
-				return 1;
+				return err;
 			}
 			if (fi->fib_flags & RTNH_F_DEAD)
 				continue;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-27  7:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-25 23:45 [PATCH] ipv4: do not ignore route errors Julian Anastasov
2011-03-26  3:33 ` David Miller
2011-03-27  0:35   ` Simon Horman
2011-03-27  6:17     ` Julian Anastasov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).