Skip to content

Commit 1fbc784

Browse files
Julian Anastasovdavem330
authored andcommitted
ipv4: do not ignore route errors
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6df59a8 commit 1fbc784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/ipv4/fib_trie.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,9 +1365,9 @@ static int check_leaf(struct fib_table *tb, struct trie *t, struct leaf *l,
13651365
err = fib_props[fa->fa_type].error;
13661366
if (err) {
13671367
#ifdef CONFIG_IP_FIB_TRIE_STATS
1368-
t->stats.semantic_match_miss++;
1368+
t->stats.semantic_match_passed++;
13691369
#endif
1370-
return 1;
1370+
return err;
13711371
}
13721372
if (fi->fib_flags & RTNH_F_DEAD)
13731373
continue;

0 commit comments

Comments
 (0)