Commit a778b70c authored by Lu Wei's avatar Lu Wei
Browse files

Revert "netfilter: nf_tables: skip bound chain on rule flush"

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I86JB6



----------------------------------------

This reverts commit f422c0ce.

Backport the dependency patch and then re-backport this patch.

Signed-off-by: default avatarLu Wei <luwei32@huawei.com>
parent 0a757e7a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3454,8 +3454,6 @@ static int nf_tables_delrule(struct net *net, struct sock *nlsk,
		list_for_each_entry(chain, &table->chains, list) {
			if (!nft_is_active_next(net, chain))
				continue;
			if (nft_chain_is_bound(chain))
				continue;

			ctx.chain = chain;
			err = nft_delrule_by_chain(&ctx);