Skip to content
Commit 6c48ea5f authored by David Ahern's avatar David Ahern Committed by David S. Miller
Browse files

ipv4: Optimization for fib_info lookup with nexthops



Be optimistic about re-using a fib_info when nexthop id is given and
the route does not use metrics. Avoids a memory allocation which in
most cases is expected to be freed anyways.

Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 493ced1a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment