* [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
* Re: [PATCH] ipv4: do not ignore route errors
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
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2011-03-26 3:33 UTC (permalink / raw)
To: ja; +Cc: netdev
From: Julian Anastasov <ja@ssi.bg>
Date: Sat, 26 Mar 2011 01:45:25 +0200
> 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>
Your mailer corrupted this patch, so I applied it by hand.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ipv4: do not ignore route errors
2011-03-26 3:33 ` David Miller
@ 2011-03-27 0:35 ` Simon Horman
2011-03-27 6:17 ` Julian Anastasov
0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2011-03-27 0:35 UTC (permalink / raw)
To: David Miller; +Cc: ja, netdev
On Fri, Mar 25, 2011 at 08:33:38PM -0700, David Miller wrote:
> From: Julian Anastasov <ja@ssi.bg>
> Date: Sat, 26 Mar 2011 01:45:25 +0200
>
> > 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>
>
> Your mailer corrupted this patch, so I applied it by hand.
I have noticed that Julian's patches usually arrive
with two leading spaces where there should be one but
are otherwise intact. And that its not a new thing,
I can remember seeing this 6 months ago, and I don't think
it was a new thing then either.
Just an observation.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ipv4: do not ignore route errors
2011-03-27 0:35 ` Simon Horman
@ 2011-03-27 6:17 ` Julian Anastasov
0 siblings, 0 replies; 4+ messages in thread
From: Julian Anastasov @ 2011-03-27 6:17 UTC (permalink / raw)
To: Simon Horman; +Cc: David Miller, netdev
Hello,
On Sun, 27 Mar 2011, Simon Horman wrote:
> > Your mailer corrupted this patch, so I applied it by hand.
>
> I have noticed that Julian's patches usually arrive
> with two leading spaces where there should be one but
> are otherwise intact. And that its not a new thing,
> I can remember seeing this 6 months ago, and I don't think
> it was a new thing then either.
>
> Just an observation.
Yes, I just yesterday discovered this format=flowed
problem myself. Then I found Documentation/email-clients.txt
explaining everything. Sorry, I hope now there should be
no problems with my emails.
Regards
--
Julian Anastasov <ja@ssi.bg>
^ 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).