Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 992cfc7c authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

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: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent c7f0030b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -247,14 +247,8 @@ static int __init nft_flow_offload_module_init(void)

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);