diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-01-03 14:36:07 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-01-05 10:06:49 +0100 |
commit | 5acab91458ceae0e4b15205fda5437631089f7ee (patch) | |
tree | 3b0fa28da51d35bf2e8f915f47807c22aa6bd243 /include/net | |
parent | 73327d47d2c04214f23217b982a004c22a493c78 (diff) |
netfilter: nf_tables: unbind callbacks from flowtable destroy path
Callback unbinding needs to be done after nf_flow_table_free(),
otherwise entries are not removed from the hardware.
Update nft_unregister_flowtable_net_hooks() to call
nf_unregister_net_hook() instead since the commit/abort paths do not
deal with the callback unbinding anymore.
Add a comment to nft_flowtable_event() to clarify that
flow_offload_netdev_event() already removes the entries before the
callback unbinding.
Fixes: 8bb69f3b2918 ("netfilter: nf_tables: add flowtable offload control plane")
Fixes ff4bf2f42a40 ("netfilter: nf_tables: add nft_unregister_flowtable_hook()")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: wenxu <wenxu@ucloud.cn>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions