@@ -2797,10 +2797,10 @@ static int nf_tables_bind_check_setelem(const struct nft_ctx *ctx,
27972797 enum nft_registers dreg ;
27982798
27992799 dreg = nft_type_to_reg (set -> dtype );
2800- return nft_validate_data_load (ctx , dreg , nft_set_ext_data (ext ),
2801- set -> dtype == NFT_DATA_VERDICT ?
2802- NFT_DATA_VERDICT : NFT_DATA_VALUE ,
2803- set -> dlen );
2800+ return nft_validate_register_store (ctx , dreg , nft_set_ext_data (ext ),
2801+ set -> dtype == NFT_DATA_VERDICT ?
2802+ NFT_DATA_VERDICT : NFT_DATA_VALUE ,
2803+ set -> dlen );
28042804}
28052805
28062806int nf_tables_bind_set (const struct nft_ctx * ctx , struct nft_set * set ,
@@ -3334,8 +3334,9 @@ static int nft_add_set_elem(struct nft_ctx *ctx, struct nft_set *set,
33343334 if (!(binding -> flags & NFT_SET_MAP ))
33353335 continue ;
33363336
3337- err = nft_validate_data_load (& bind_ctx , dreg ,
3338- & data , d2 .type , d2 .len );
3337+ err = nft_validate_register_store (& bind_ctx , dreg ,
3338+ & data ,
3339+ d2 .type , d2 .len );
33393340 if (err < 0 )
33403341 goto err3 ;
33413342 }
@@ -4157,7 +4158,7 @@ int nft_validate_output_register(enum nft_registers reg)
41574158EXPORT_SYMBOL_GPL (nft_validate_output_register );
41584159
41594160/**
4160- * nft_validate_data_load - validate an expressions' data load
4161+ * nft_validate_register_store - validate an expressions' register store
41614162 *
41624163 * @ctx: context of the expression performing the load
41634164 * @reg: the destination register number
@@ -4170,9 +4171,10 @@ EXPORT_SYMBOL_GPL(nft_validate_output_register);
41704171 * A value of NULL for the data means that its runtime gathered
41714172 * data, which is always of type NFT_DATA_VALUE.
41724173 */
4173- int nft_validate_data_load (const struct nft_ctx * ctx , enum nft_registers reg ,
4174- const struct nft_data * data ,
4175- enum nft_data_types type , unsigned int len )
4174+ int nft_validate_register_store (const struct nft_ctx * ctx ,
4175+ enum nft_registers reg ,
4176+ const struct nft_data * data ,
4177+ enum nft_data_types type , unsigned int len )
41764178{
41774179 int err ;
41784180
@@ -4204,7 +4206,7 @@ int nft_validate_data_load(const struct nft_ctx *ctx, enum nft_registers reg,
42044206 return 0 ;
42054207 }
42064208}
4207- EXPORT_SYMBOL_GPL (nft_validate_data_load );
4209+ EXPORT_SYMBOL_GPL (nft_validate_register_store );
42084210
42094211static const struct nla_policy nft_verdict_policy [NFTA_VERDICT_MAX + 1 ] = {
42104212 [NFTA_VERDICT_CODE ] = { .type = NLA_U32 },
0 commit comments