From: Pablo Neira Ayuso Date: Thu, 1 Feb 2018 17:49:01 +0000 (+0100) Subject: netfilter: nft_flow_offload: no need to flush entries on module removal X-Git-Tag: v4.16-rc1~14^2~36^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=992cfc7c5d105094da7c21c9c74d97ac26bb1e56;p=thirdparty%2Fkernel%2Flinux.git netfilter: nft_flow_offload: no need to flush entries on module removal nft_flow_offload module removal does not require to flush existing flowtables, it is valid to remove this module while keeping flowtables around. Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nft_flow_offload.c b/net/netfilter/nft_flow_offload.c index 1739ff8ca21fb..e5c45c7ac02a1 100644 --- a/net/netfilter/nft_flow_offload.c +++ b/net/netfilter/nft_flow_offload.c @@ -247,14 +247,8 @@ register_expr: static void __exit nft_flow_offload_module_exit(void) { - struct net *net; - nft_unregister_expr(&nft_flow_offload_type); unregister_netdevice_notifier(&flow_offload_netdev_notifier); - rtnl_lock(); - for_each_net(net) - nft_flow_table_iterate(net, nft_flow_offload_iterate_cleanup, NULL); - rtnl_unlock(); } module_init(nft_flow_offload_module_init);