Home
last modified time | relevance | path

Searched hist:"7289 e6dd" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ipv4/
H A Dfib_trie.c7289e6dd Wed Mar 04 16:58:19 CST 2015 Alexander Duyck <alexander.h.duyck@redhat.com> fib_trie: Only resize tnodes once instead of on each leaf removal in fib_table_flush

This change makes it so that we only call resize on the tnodes, instead of
from each of the leaves. By doing this we can significantly reduce the
amount of time spent resizing as we can update all of the leaves in the
tnode first before we make any determinations about resizing. As a result
we can simply free the tnode in the case that all of the leaves from a
given tnode are flushed instead of resizing with each leaf removed.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>