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 <pablo@netfilter.org>
This commit is contained in:
@@ -247,14 +247,8 @@ register_expr:
|
|||||||
|
|
||||||
static void __exit nft_flow_offload_module_exit(void)
|
static void __exit nft_flow_offload_module_exit(void)
|
||||||
{
|
{
|
||||||
struct net *net;
|
|
||||||
|
|
||||||
nft_unregister_expr(&nft_flow_offload_type);
|
nft_unregister_expr(&nft_flow_offload_type);
|
||||||
unregister_netdevice_notifier(&flow_offload_netdev_notifier);
|
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);
|
module_init(nft_flow_offload_module_init);
|
||||||
|
|||||||
Reference in New Issue
Block a user