Skip to contentSkip to conversation

fib semantic matching

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

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

cover fib semantic matching

fib_semantic_match() creates unnecessary overhead on route lookups for two reasons:

1) It does type validation at run time instead of when we insert the route.

2) Argument passing is expensive because it does it's work as a seperate function.

So these two patches move type validation into fib_create_info(), and then we inline fib_semantic_match() completely into check_leaf().

This is good for 50+ cycle gain on output route lookups on Niagara2.