From: wenxu <wenxu@xxxxxxxxx> This series clean the offload things for both chain and rules when the related device unregister This version add a netdev notify to clean this things in the nft_offload_init wenxu (3): netfilter: nf_offload: refactor the nft_flow_offload_chain function netfilter: nf_offload: refactor the nft_flow_offload_rule function netfilter: nf_offload: clean offload things when the device unregister include/net/netfilter/nf_tables_offload.h | 2 +- net/netfilter/nf_tables_api.c | 9 ++- net/netfilter/nf_tables_offload.c | 110 +++++++++++++++++++++++++----- 3 files changed, 102 insertions(+), 19 deletions(-) -- 1.8.3.1