commit | 6c48ea5fe639ab7e7b3eb5d8e8b324b13188bf10 | [log] [tgz] |
---|---|---|
author | David Ahern <dsahern@gmail.com> | Sat Jun 08 14:53:33 2019 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Jun 10 10:44:57 2019 -0700 |
tree | 2eb94deff893ca111adf181d1b98c3ae51169733 | |
parent | 493ced1ac47c48bb86d9d4e8e87df8592be85a0e [diff] |
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: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>