{"id":2223596,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2223596/?format=json","web_url":"http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260415171038.41442-2-pablo@netfilter.org/","project":{"id":26,"url":"http://patchwork.ozlabs.org/api/1.1/projects/26/?format=json","name":"Netfilter Development","link_name":"netfilter-devel","list_id":"netfilter-devel.vger.kernel.org","list_email":"netfilter-devel@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260415171038.41442-2-pablo@netfilter.org>","date":"2026-04-15T17:10:38","name":"[nf,v2,3/3] netfilter: nf_tables: add hook transactions for device deletions","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"db571ee44a34d273f5b664a4fb9a3e46e3fa0a42","submitter":{"id":1315,"url":"http://patchwork.ozlabs.org/api/1.1/people/1315/?format=json","name":"Pablo Neira Ayuso","email":"pablo@netfilter.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260415171038.41442-2-pablo@netfilter.org/mbox/","series":[{"id":500019,"url":"http://patchwork.ozlabs.org/api/1.1/series/500019/?format=json","web_url":"http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=500019","date":"2026-04-15T17:10:38","name":"[nf,v2,1/3] rculist: add list_splice_rcu() for private lists","version":2,"mbox":"http://patchwork.ozlabs.org/series/500019/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2223596/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2223596/checks/","tags":{},"headers":{"Return-Path":"\n <netfilter-devel+bounces-11933-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","netfilter-devel@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=netfilter.org header.i=@netfilter.org\n header.a=rsa-sha256 header.s=2025 header.b=tcPPYU5D;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-11933-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=\"tcPPYU5D\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=217.70.190.124","smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=netfilter.org"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fwnlJ51VCz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 03:12:44 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id B758B306EFF4\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 17:10:50 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C28103A9D9C;\n\tWed, 15 Apr 2026 17:10:49 +0000 (UTC)","from mail.netfilter.org (mail.netfilter.org [217.70.190.124])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id AD2683A75B7\n\tfor <netfilter-devel@vger.kernel.org>; Wed, 15 Apr 2026 17:10:47 +0000 (UTC)","from localhost.localdomain (mail-agni [217.70.190.124])\n\tby mail.netfilter.org (Postfix) with ESMTPSA id 7E7D7600B5;\n\tWed, 15 Apr 2026 19:10:45 +0200 (CEST)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776273049; cv=none;\n b=W9dnjyE7Bu9FIy/tp0wykDlsJRh17ILnICZCvP1t66hcb/UroXhGgJFWwBptquJDTAWvcwCW0wbpyztbk8JseczXL84qvoVmRNR/o8Su2s41OgP5hfeOFia40TO7ZvZFt9xm2L35NpoAwxrpH7ABZu2AA+fIbzbwblCstWp+YBs=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776273049; c=relaxed/simple;\n\tbh=/cl8xPrwU4M6zAoVvUk8j/1b83xhRq7TXgynUxBrqxw=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=LhNZtlo4+XCn3EGhkyCR6t67KhV+Gv6DSOFLwFjPBYqpvpGQKDk2nKxe42AEJyf5ejvx0TdmCSDxbXBti3C46UIC1LKjh6FiY0Yl6+oidAYo6H44y3P1E7bJlCxO7JAuJX2D6rDRUl+RYYoSmb2KQ/LVj2OdR4+o7RPdq3j7Tdg=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org;\n spf=pass smtp.mailfrom=netfilter.org;\n dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=tcPPYU5D; arc=none smtp.client-ip=217.70.190.124","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;\n\ts=2025; t=1776273045;\n\tbh=kTV8XdpTgY+ZAAdccwvCMOgpH0YbW9qXzlgZliYEi04=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=tcPPYU5D1ZPzMrzz8UbJJW9FtBsRe31mL5SWQ9xqmN6yKKOjCkG9DxwFXtAyreHkr\n\t fPLpiCtkir33c6z6IhtTrszTBIjgLX3lD3Wo9QZr6l3DlwTzMPe72pqQTywSIj7EII\n\t RdXGHmwgK37US+hgTtWAy2Jj6IoXVphYYy8Dz+owD+orUeWjn6MlvlhUovxhucPfvX\n\t FLhB7k6++/8YPsuU/drN9D1DFUEZ2Vogro8icvbIgVRpgsNd0OAFvzBmt7RTdtuX05\n\t ySfmI4JXMIog/FNUlLIA8fOSeSsIRN+hUmW64ax4n1ZevzTYwjr91Xw4rFhOKYdyff\n\t 8J9PvLSkUUbjg==","From":"Pablo Neira Ayuso <pablo@netfilter.org>","To":"netfilter-devel@vger.kernel.org","Cc":"fw@strlen.de","Subject":"[PATCH nf,v2 3/3] netfilter: nf_tables: add hook transactions for\n device deletions","Date":"Wed, 15 Apr 2026 19:10:38 +0200","Message-ID":"<20260415171038.41442-2-pablo@netfilter.org>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260415171038.41442-1-pablo@netfilter.org>","References":"<20260415171038.41442-1-pablo@netfilter.org>","Precedence":"bulk","X-Mailing-List":"netfilter-devel@vger.kernel.org","List-Id":"<netfilter-devel.vger.kernel.org>","List-Subscribe":"<mailto:netfilter-devel+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:netfilter-devel+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit"},"content":"Restore the flag that indicates that the hook is going away, ie.\nNFT_HOOK_REMOVE, but add a new transaction object to track deletion\nof hooks without altering the basechain/flowtable hook_list during\nthe preparation phase.\n\nThe existing approach that moves the hook from the basechain/flowtable\nhook_list to transaction hook_list breaks netlink dump path readers\nof this RCU-protected list.\n\nIt should be possible use an array for nft_trans_hook to store the\ndeleted hooks to compact the representation but I am not expecting\nmany hook object, specially now that wildcard support for devices\nis in place.\n\nNote that the nft_trans_chain_hooks() list contains a list of struct\nnft_trans_hook objects for DELCHAIN and DELFLOWTABLE commands, while\nthis list stores struct nft_hook objects for NEWCHAIN and NEWFLOWTABLE.\nNote that new commands can be updated to use nft_trans_hook for\nconsistency.\n\nFixes: 7d937b107108 (\"netfilter: nf_tables: support for deleting devices in an existing netdev chain\")\nFixes: b6d9014a3335 (\"netfilter: nf_tables: delete flowtable hooks via transaction list\")\nSigned-off-by: Pablo Neira Ayuso <pablo@netfilter.org>\n---\nv2: no changes.\n\n include/net/netfilter/nf_tables.h |  13 ++++\n net/netfilter/nf_tables_api.c     | 124 ++++++++++++++++++++++++++----\n 2 files changed, 120 insertions(+), 17 deletions(-)","diff":"diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h\nindex ec8a8ec9c0aa..3ec41574af77 100644\n--- a/include/net/netfilter/nf_tables.h\n+++ b/include/net/netfilter/nf_tables.h\n@@ -1216,12 +1216,15 @@ struct nft_stats {\n \tstruct u64_stats_sync\tsyncp;\n };\n \n+#define NFT_HOOK_REMOVE\t(1 << 0)\n+\n struct nft_hook {\n \tstruct list_head\tlist;\n \tstruct list_head\tops_list;\n \tstruct rcu_head\t\trcu;\n \tchar\t\t\tifname[IFNAMSIZ];\n \tu8\t\t\tifnamelen;\n+\tu8\t\t\tflags;\n };\n \n struct nf_hook_ops *nft_hook_find_ops(const struct nft_hook *hook,\n@@ -1676,6 +1679,16 @@ struct nft_trans {\n \tu8\t\t\t\tput_net:1;\n };\n \n+/**\n+ * struct nft_trans_hook - nf_tables hook update in transaction\n+ * @list: used internally\n+ * @hook: struct nft_hook with the device hook\n+ */\n+struct nft_trans_hook {\n+\tstruct list_head\t\tlist;\n+\tstruct nft_hook\t\t\t*hook;\n+};\n+\n /**\n  * struct nft_trans_binding - nf_tables object with binding support in transaction\n  * @nft_trans:    base structure, MUST be first member\ndiff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c\nindex 4d7c2794c87d..2ea94a534280 100644\n--- a/net/netfilter/nf_tables_api.c\n+++ b/net/netfilter/nf_tables_api.c\n@@ -374,6 +374,25 @@ static void nft_netdev_hook_free_rcu(struct nft_hook *hook)\n \tcall_rcu(&hook->rcu, __nft_netdev_hook_free_rcu);\n }\n \n+static void nft_netdev_unregister_trans_hook(struct net *net,\n+\t\t\t\t\t     struct list_head *hook_list)\n+{\n+\tstruct nft_trans_hook *trans_hook, *next;\n+\tstruct nf_hook_ops *ops;\n+\tstruct nft_hook *hook;\n+\n+\tlist_for_each_entry_safe(trans_hook, next, hook_list, list) {\n+\t\thook = trans_hook->hook;\n+\t\tlist_for_each_entry(ops, &hook->ops_list, list)\n+\t\t\tnf_unregister_net_hook(net, ops);\n+\n+\t\tlist_del(&hook->list);\n+\t\tnft_netdev_hook_free_rcu(hook);\n+\t\tlist_del(&trans_hook->list);\n+\t\tkfree(trans_hook);\n+\t}\n+}\n+\n static void nft_netdev_unregister_hooks(struct net *net,\n \t\t\t\t\tstruct list_head *hook_list,\n \t\t\t\t\tbool release_netdev)\n@@ -2395,8 +2414,12 @@ static struct nft_hook *nft_hook_list_find(struct list_head *hook_list,\n \n \tlist_for_each_entry(hook, hook_list, list) {\n \t\tif (!strncmp(hook->ifname, this->ifname,\n-\t\t\t     min(hook->ifnamelen, this->ifnamelen)))\n+\t\t\t     min(hook->ifnamelen, this->ifnamelen))) {\n+\t\t\tif (hook->flags & NFT_HOOK_REMOVE)\n+\t\t\t\tcontinue;\n+\n \t\t\treturn hook;\n+\t\t}\n \t}\n \n \treturn NULL;\n@@ -3160,6 +3183,7 @@ static int nft_delchain_hook(struct nft_ctx *ctx,\n {\n \tconst struct nft_chain *chain = &basechain->chain;\n \tconst struct nlattr * const *nla = ctx->nla;\n+\tstruct nft_trans_hook *trans_hook, *next;\n \tstruct nft_chain_hook chain_hook = {};\n \tstruct nft_hook *this, *hook;\n \tLIST_HEAD(chain_del_list);\n@@ -3180,7 +3204,14 @@ static int nft_delchain_hook(struct nft_ctx *ctx,\n \t\t\terr = -ENOENT;\n \t\t\tgoto err_chain_del_hook;\n \t\t}\n-\t\tlist_move(&hook->list, &chain_del_list);\n+\t\ttrans_hook = kmalloc(sizeof(*trans_hook), GFP_KERNEL);\n+\t\tif (!trans_hook) {\n+\t\t\terr = -ENOMEM;\n+\t\t\tgoto err_chain_del_hook;\n+\t\t}\n+\t\ttrans_hook->hook = hook;\n+\t\tlist_add_tail(&trans_hook->list, &chain_del_list);\n+\t\thook->flags |= NFT_HOOK_REMOVE;\n \t}\n \n \ttrans = nft_trans_alloc_chain(ctx, NFT_MSG_DELCHAIN);\n@@ -3200,7 +3231,11 @@ static int nft_delchain_hook(struct nft_ctx *ctx,\n \treturn 0;\n \n err_chain_del_hook:\n-\tlist_splice(&chain_del_list, &basechain->hook_list);\n+\tlist_for_each_entry_safe(trans_hook, next, &chain_del_list, list) {\n+\t\tlist_del(&trans_hook->list);\n+\t\ttrans_hook->hook->flags &= ~NFT_HOOK_REMOVE;\n+\t\tkfree(trans_hook);\n+\t}\n \tnft_chain_release_hook(&chain_hook);\n \n \treturn err;\n@@ -8984,6 +9019,20 @@ static int nft_register_flowtable_net_hooks(struct net *net,\n \treturn err;\n }\n \n+static void nft_hooks_trans_destroy(struct list_head *hook_list)\n+{\n+\tstruct nft_trans_hook *trans_hook, *next;\n+\tstruct nft_hook *hook;\n+\n+\tlist_for_each_entry_safe(trans_hook, next, hook_list, list) {\n+\t\thook = trans_hook->hook;\n+\t\tlist_del_rcu(&hook->list);\n+\t\tnft_netdev_hook_free_rcu(hook);\n+\t\tlist_del(&trans_hook->list);\n+\t\tkfree(trans_hook);\n+\t}\n+}\n+\n static void nft_hooks_destroy(struct list_head *hook_list)\n {\n \tstruct nft_hook *hook, *next;\n@@ -8994,6 +9043,27 @@ static void nft_hooks_destroy(struct list_head *hook_list)\n \t}\n }\n \n+static void nft_flowtable_unregister_hooks_trans(struct net *net,\n+\t\t\t\t\t\t struct nft_flowtable *flowtable,\n+\t\t\t\t\t\t struct list_head *hook_list)\n+{\n+\tstruct nft_trans_hook *trans_hook, *next;\n+\tstruct nf_hook_ops *ops;\n+\tstruct nft_hook *hook;\n+\n+\tlist_for_each_entry_safe(trans_hook, next, hook_list, list) {\n+\t\thook = trans_hook->hook;\n+\t\tlist_for_each_entry(ops, &hook->ops_list, list)\n+\t\t\tnft_unregister_flowtable_ops(net, flowtable, ops);\n+\n+\t\tlist_del(&hook->list);\n+\t\tnft_netdev_hook_free_rcu(hook);\n+\t\tlist_del(&trans_hook->list);\n+\t\tkfree(trans_hook);\n+\n+\t}\n+}\n+\n static int nft_flowtable_update(struct nft_ctx *ctx, const struct nlmsghdr *nlh,\n \t\t\t\tstruct nft_flowtable *flowtable,\n \t\t\t\tstruct netlink_ext_ack *extack)\n@@ -9237,6 +9307,7 @@ static int nft_delflowtable_hook(struct nft_ctx *ctx,\n {\n \tconst struct nlattr * const *nla = ctx->nla;\n \tstruct nft_flowtable_hook flowtable_hook;\n+\tstruct nft_trans_hook *trans_hook, *next;\n \tLIST_HEAD(flowtable_del_list);\n \tstruct nft_hook *this, *hook;\n \tstruct nft_trans *trans;\n@@ -9253,7 +9324,14 @@ static int nft_delflowtable_hook(struct nft_ctx *ctx,\n \t\t\terr = -ENOENT;\n \t\t\tgoto err_flowtable_del_hook;\n \t\t}\n-\t\tlist_move(&hook->list, &flowtable_del_list);\n+\t\ttrans_hook = kmalloc(sizeof(*trans_hook), GFP_KERNEL);\n+\t\tif (!trans_hook) {\n+\t\t\terr = -ENOMEM;\n+\t\t\tgoto err_flowtable_del_hook;\n+\t\t}\n+\t\ttrans_hook->hook = hook;\n+\t\tlist_add_tail(&trans_hook->list, &flowtable_del_list);\n+\t\thook->flags |= NFT_HOOK_REMOVE;\n \t}\n \n \ttrans = nft_trans_alloc(ctx, NFT_MSG_DELFLOWTABLE,\n@@ -9274,7 +9352,11 @@ static int nft_delflowtable_hook(struct nft_ctx *ctx,\n \treturn 0;\n \n err_flowtable_del_hook:\n-\tlist_splice(&flowtable_del_list, &flowtable->hook_list);\n+\tlist_for_each_entry_safe(trans_hook, next, &flowtable_del_list, list) {\n+\t\tlist_del(&trans_hook->list);\n+\t\ttrans_hook->hook->flags &= ~NFT_HOOK_REMOVE;\n+\t\tkfree(trans_hook);\n+\t}\n \tnft_flowtable_hook_release(&flowtable_hook);\n \n \treturn err;\n@@ -10112,7 +10194,7 @@ static void nft_commit_release(struct nft_trans *trans)\n \tcase NFT_MSG_DELCHAIN:\n \tcase NFT_MSG_DESTROYCHAIN:\n \t\tif (nft_trans_chain_update(trans))\n-\t\t\tnft_hooks_destroy(&nft_trans_chain_hooks(trans));\n+\t\t\tnft_hooks_trans_destroy(&nft_trans_chain_hooks(trans));\n \t\telse\n \t\t\tnf_tables_chain_destroy(nft_trans_chain(trans));\n \t\tbreak;\n@@ -10135,7 +10217,7 @@ static void nft_commit_release(struct nft_trans *trans)\n \tcase NFT_MSG_DELFLOWTABLE:\n \tcase NFT_MSG_DESTROYFLOWTABLE:\n \t\tif (nft_trans_flowtable_update(trans))\n-\t\t\tnft_hooks_destroy(&nft_trans_flowtable_hooks(trans));\n+\t\t\tnft_hooks_trans_destroy(&nft_trans_flowtable_hooks(trans));\n \t\telse\n \t\t\tnf_tables_flowtable_destroy(nft_trans_flowtable(trans));\n \t\tbreak;\n@@ -10928,9 +11010,8 @@ static int nf_tables_commit(struct net *net, struct sk_buff *skb)\n \t\t\t\tnf_tables_chain_notify(&ctx, NFT_MSG_DELCHAIN,\n \t\t\t\t\t\t       &nft_trans_chain_hooks(trans));\n \t\t\t\tif (!(table->flags & NFT_TABLE_F_DORMANT)) {\n-\t\t\t\t\tnft_netdev_unregister_hooks(net,\n-\t\t\t\t\t\t\t\t    &nft_trans_chain_hooks(trans),\n-\t\t\t\t\t\t\t\t    true);\n+\t\t\t\t\tnft_netdev_unregister_trans_hook(net,\n+\t\t\t\t\t\t\t\t    &nft_trans_chain_hooks(trans));\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tnft_chain_del(nft_trans_chain(trans));\n@@ -11060,9 +11141,9 @@ static int nf_tables_commit(struct net *net, struct sk_buff *skb)\n \t\t\t\t\t\t\t   nft_trans_flowtable(trans),\n \t\t\t\t\t\t\t   &nft_trans_flowtable_hooks(trans),\n \t\t\t\t\t\t\t   trans->msg_type);\n-\t\t\t\tnft_unregister_flowtable_net_hooks(net,\n-\t\t\t\t\t\t\t\t   nft_trans_flowtable(trans),\n-\t\t\t\t\t\t\t\t   &nft_trans_flowtable_hooks(trans));\n+\t\t\t\tnft_flowtable_unregister_hooks_trans(net,\n+\t\t\t\t\t\t\t\t     nft_trans_flowtable(trans),\n+\t\t\t\t\t\t\t\t     &nft_trans_flowtable_hooks(trans));\n \t\t\t} else {\n \t\t\t\tlist_del_rcu(&nft_trans_flowtable(trans)->list);\n \t\t\t\tnf_tables_flowtable_notify(&ctx,\n@@ -11158,6 +11239,17 @@ static void nft_set_abort_update(struct list_head *set_update_list)\n \t}\n }\n \n+static void nft_hooks_trans_abort(struct list_head *trans_hook_list)\n+{\n+\tstruct nft_trans_hook *trans_hook, *next;\n+\n+\tlist_for_each_entry_safe(trans_hook, next, trans_hook_list, list) {\n+\t\ttrans_hook->hook->flags &= ~NFT_HOOK_REMOVE;\n+\t\tlist_del(&trans_hook->list);\n+\t\tkfree(trans_hook);\n+\t}\n+}\n+\n static int __nf_tables_abort(struct net *net, enum nfnl_abort_action action)\n {\n \tstruct nftables_pernet *nft_net = nft_pernet(net);\n@@ -11231,8 +11323,7 @@ static int __nf_tables_abort(struct net *net, enum nfnl_abort_action action)\n \t\tcase NFT_MSG_DELCHAIN:\n \t\tcase NFT_MSG_DESTROYCHAIN:\n \t\t\tif (nft_trans_chain_update(trans)) {\n-\t\t\t\tlist_splice(&nft_trans_chain_hooks(trans),\n-\t\t\t\t\t    &nft_trans_basechain(trans)->hook_list);\n+\t\t\t\tnft_hooks_trans_abort(&nft_trans_chain_hooks(trans));\n \t\t\t} else {\n \t\t\t\tnft_use_inc_restore(&table->use);\n \t\t\t\tnft_clear(trans->net, nft_trans_chain(trans));\n@@ -11346,8 +11437,7 @@ static int __nf_tables_abort(struct net *net, enum nfnl_abort_action action)\n \t\tcase NFT_MSG_DELFLOWTABLE:\n \t\tcase NFT_MSG_DESTROYFLOWTABLE:\n \t\t\tif (nft_trans_flowtable_update(trans)) {\n-\t\t\t\tlist_splice(&nft_trans_flowtable_hooks(trans),\n-\t\t\t\t\t    &nft_trans_flowtable(trans)->hook_list);\n+\t\t\t\tnft_hooks_trans_abort(&nft_trans_flowtable_hooks(trans));\n \t\t\t} else {\n \t\t\t\tnft_use_inc_restore(&table->use);\n \t\t\t\tnft_clear(trans->net, nft_trans_flowtable(trans));\n","prefixes":["nf","v2","3/3"]}