Skip to content

Commit cdc3254

Browse files
committed
netfilter: nf_tables: rename function to destroy hook list
Rename nft_flowtable_hooks_destroy() by nft_hooks_destroy() to prepare for netdev chain device updates. Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 28339b2 commit cdc3254

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7771,7 +7771,7 @@ static int nft_register_flowtable_net_hooks(struct net *net,
77717771
return err;
77727772
}
77737773

7774-
static void nft_flowtable_hooks_destroy(struct list_head *hook_list)
7774+
static void nft_hooks_destroy(struct list_head *hook_list)
77757775
{
77767776
struct nft_hook *hook, *next;
77777777

@@ -7952,7 +7952,7 @@ static int nf_tables_newflowtable(struct sk_buff *skb,
79527952
&flowtable->hook_list,
79537953
flowtable);
79547954
if (err < 0) {
7955-
nft_flowtable_hooks_destroy(&flowtable->hook_list);
7955+
nft_hooks_destroy(&flowtable->hook_list);
79567956
goto err4;
79577957
}
79587958

@@ -8789,7 +8789,7 @@ static void nft_commit_release(struct nft_trans *trans)
87898789
case NFT_MSG_DELFLOWTABLE:
87908790
case NFT_MSG_DESTROYFLOWTABLE:
87918791
if (nft_trans_flowtable_update(trans))
8792-
nft_flowtable_hooks_destroy(&nft_trans_flowtable_hooks(trans));
8792+
nft_hooks_destroy(&nft_trans_flowtable_hooks(trans));
87938793
else
87948794
nf_tables_flowtable_destroy(nft_trans_flowtable(trans));
87958795
break;
@@ -9440,7 +9440,7 @@ static void nf_tables_abort_release(struct nft_trans *trans)
94409440
break;
94419441
case NFT_MSG_NEWFLOWTABLE:
94429442
if (nft_trans_flowtable_update(trans))
9443-
nft_flowtable_hooks_destroy(&nft_trans_flowtable_hooks(trans));
9443+
nft_hooks_destroy(&nft_trans_flowtable_hooks(trans));
94449444
else
94459445
nf_tables_flowtable_destroy(nft_trans_flowtable(trans));
94469446
break;

0 commit comments

Comments
 (0)