Skip to content

Commit f8bb788

Browse files
committed
netfilter: nftables: rename set element data activation/deactivation functions
Rename: - nft_set_elem_activate() to nft_set_elem_data_activate(). - nft_set_elem_deactivate() to nft_set_elem_data_deactivate(). To prepare for updates in the set element infrastructure to add support for the special catch-all element. Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 6d72e7c commit f8bb788

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5263,8 +5263,8 @@ void nft_set_elem_destroy(const struct nft_set *set, void *elem,
52635263
}
52645264
EXPORT_SYMBOL_GPL(nft_set_elem_destroy);
52655265

5266-
/* Only called from commit path, nft_set_elem_deactivate() already deals with
5267-
* the refcounting from the preparation phase.
5266+
/* Only called from commit path, nft_setelem_data_deactivate() already deals
5267+
* with the refcounting from the preparation phase.
52685268
*/
52695269
static void nf_tables_set_elem_destroy(const struct nft_ctx *ctx,
52705270
const struct nft_set *set, void *elem)
@@ -5733,9 +5733,9 @@ void nft_data_hold(const struct nft_data *data, enum nft_data_types type)
57335733
}
57345734
}
57355735

5736-
static void nft_set_elem_activate(const struct net *net,
5737-
const struct nft_set *set,
5738-
struct nft_set_elem *elem)
5736+
static void nft_setelem_data_activate(const struct net *net,
5737+
const struct nft_set *set,
5738+
struct nft_set_elem *elem)
57395739
{
57405740
const struct nft_set_ext *ext = nft_set_elem_ext(set, elem->priv);
57415741

@@ -5745,9 +5745,9 @@ static void nft_set_elem_activate(const struct net *net,
57455745
(*nft_set_ext_obj(ext))->use++;
57465746
}
57475747

5748-
static void nft_set_elem_deactivate(const struct net *net,
5749-
const struct nft_set *set,
5750-
struct nft_set_elem *elem)
5748+
static void nft_setelem_data_deactivate(const struct net *net,
5749+
const struct nft_set *set,
5750+
struct nft_set_elem *elem)
57515751
{
57525752
const struct nft_set_ext *ext = nft_set_elem_ext(set, elem->priv);
57535753

@@ -5824,7 +5824,7 @@ static int nft_del_setelem(struct nft_ctx *ctx, struct nft_set *set,
58245824
kfree(elem.priv);
58255825
elem.priv = priv;
58265826

5827-
nft_set_elem_deactivate(ctx->net, set, &elem);
5827+
nft_setelem_data_deactivate(ctx->net, set, &elem);
58285828

58295829
nft_trans_elem(trans) = elem;
58305830
nft_trans_commit_list_add_tail(ctx->net, trans);
@@ -5858,7 +5858,7 @@ static int nft_flush_set(const struct nft_ctx *ctx,
58585858
}
58595859
set->ndeact++;
58605860

5861-
nft_set_elem_deactivate(ctx->net, set, elem);
5861+
nft_setelem_data_deactivate(ctx->net, set, elem);
58625862
nft_trans_elem_set(trans) = set;
58635863
nft_trans_elem(trans) = *elem;
58645864
nft_trans_commit_list_add_tail(ctx->net, trans);
@@ -8479,7 +8479,7 @@ static int __nf_tables_abort(struct net *net, enum nfnl_abort_action action)
84798479
case NFT_MSG_DELSETELEM:
84808480
te = (struct nft_trans_elem *)trans->data;
84818481

8482-
nft_set_elem_activate(net, te->set, &te->elem);
8482+
nft_setelem_data_activate(net, te->set, &te->elem);
84838483
te->set->ops->activate(net, te->set, &te->elem);
84848484
te->set->ndeact--;
84858485

0 commit comments

Comments
 (0)