Skip to contentSkip to conversation

ipv4: Inline fib_semantic_match into check_leaf

PATCH New David Miller 1 participant 1 message Mar 7, 2011

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 2/2 ipv4: Inline fib_semantic_match into check_leaf

This elimiates a lot of pure overhead due to parameter passing.

---
 net/ipv4/fib_lookup.h    |    7 +++++
 net/ipv4/fib_semantics.c |   68 +---------------------------------------------
 net/ipv4/fib_trie.c      |   51 +++++++++++++++++++++++++++++-----
 3 files changed, 51 insertions(+), 75 deletions(-)
net/ipv4/fib_lookup.h +7 -0
index d5c40d8..84db2da 100644
@@ -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 */
net/ipv4/fib_semantics.c +1 -67

80 lines not on this page · raw message

net/ipv4/fib_trie.c +43 -8

66 lines not on this page · raw message

Signature · 1 line
1.7.4.1