Skip to content

fib semantic matching

David Miller netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ipv4: Validate route entry type at insert instead of every lookup.net/ipv4/fib_semantics.c+28 -260 replies
2/2ipv4: Inline fib_semantic_match into check_leafnet/ipv4/fib_lookup.h net/ipv4/fib_semantics.c net/ipv4/fib_trie.c+51 -750 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] 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.