]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fib_trie: Cleanup ip_fib_net_exit code path
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Fri, 27 Mar 2015 21:14:22 +0000 (14:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 17:18:56 +0000 (13:18 -0400)
commit6e47d6caff9e8af6db0741ddbd260bdd36d24c13
tree668bcba1529c40c0117c26a10d329d28378a54ef
parentad88d05136386de3584867091a51927eab18dc39
fib_trie: Cleanup ip_fib_net_exit code path

While fixing a recent issue I noticed that we are doing some unnecessary
work inside the loop for ip_fib_net_exit.  As such I am pulling out the
initialization to NULL for the locally stored fib_local, fib_main, and
fib_default.

In addition I am restoring the original code for flushing the table as
there is no need to split up the fib_table_flush and hlist_del work since
the code for packing the tnodes with multiple key vectors was dropped.

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