Hi, The following patchset contains Netfilter fixes for net: Patch #1 amends a missing spot where the set iterator type is unset. This is fixing a issue in the previous pull request. Patch #2 fixes the delete set command abort path by restoring state of the elements. Reverse logic for the activate (abort) case otherwise element state is not restored, this requires to move the check for active/inactive elements to the set iterator callback. From the deactivate path, toggle the next generation bit and from the activate (abort) path, clear the next generation bitmask. Patch #3 skips elements already restored by delete set command from the abort path in case there is a previous delete element command in the batch. Check for the next generation bit just like it is done via set iteration to restore maps. Please, pull these changes from: git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-24-04-18 Thanks. ---------------------------------------------------------------- The following changes since commit 75ce9506ee3dc66648a7d74ab3b0acfa364d6d43: octeontx2-pf: fix FLOW_DIS_IS_FRAGMENT implementation (2024-04-15 10:45:03 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git tags/nf-24-04-18 for you to fetch changes up to 86a1471d7cde792941109b93b558b5dc078b9ee9: netfilter: nf_tables: fix memleak in map from abort path (2024-04-18 02:41:32 +0200) ---------------------------------------------------------------- netfilter pull request 24-04-18 ---------------------------------------------------------------- Pablo Neira Ayuso (3): netfilter: nf_tables: missing iterator type in lookup walk netfilter: nf_tables: restore set elements when delete set fails netfilter: nf_tables: fix memleak in map from abort path net/netfilter/nf_tables_api.c | 60 +++++++++++++++++++++++++++++++++++++----- net/netfilter/nft_lookup.c | 1 + net/netfilter/nft_set_bitmap.c | 4 +-- net/netfilter/nft_set_hash.c | 8 ++---- net/netfilter/nft_set_pipapo.c | 8 +++--- net/netfilter/nft_set_rbtree.c | 4 +-- 6 files changed, 62 insertions(+), 23 deletions(-)