summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_lookup.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-07 15:01:10 -0800
committerDavid S. Miller <davem@davemloft.net>2011-03-07 15:19:39 -0800
commit3be0686b6e2f953afe83626e871b4a7b0ceae49b (patch)
tree6591cba7d393d6b0bc7b2c647a5a5f1f5d8728e8 /net/ipv4/fib_lookup.h
parent4c8237cd76a0510677dc2e3dd0f8866ec8e0b1e5 (diff)
downloadlinux-3be0686b6e2f953afe83626e871b4a7b0ceae49b.tar.gz
linux-3be0686b6e2f953afe83626e871b4a7b0ceae49b.tar.bz2
linux-3be0686b6e2f953afe83626e871b4a7b0ceae49b.zip
ipv4: Inline fib_semantic_match into check_leaf
This elimiates a lot of pure overhead due to parameter passing. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_lookup.h')
-rw-r--r--net/ipv4/fib_lookup.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ipv4/fib_lookup.h b/net/ipv4/fib_lookup.h
index d5c40d8f6632..84db2da5c848 100644
--- a/net/ipv4/fib_lookup.h
+++ b/net/ipv4/fib_lookup.h
@@ -51,4 +51,11 @@ static inline void fib_result_assign(struct fib_result *res,
res->fi = fi;
}
+struct fib_prop {
+ int error;
+ u8 scope;
+};
+
+extern const struct fib_prop fib_props[RTN_MAX + 1];
+
#endif /* _FIB_LOOKUP_H */