ipv4: Inline fib_semantic_match into check_leaf
Subsystems (3)
David Miller
maintainerPATCH 2/2 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 <[email protected]>
--- 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
@@ -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