Searched refs:priv_dst (Results 1 – 4 of 4) sorted by relevance
138 static int nft_limit_clone(struct nft_limit_priv *priv_dst, in nft_limit_clone() argument141 priv_dst->tokens_max = priv_src->tokens_max; in nft_limit_clone()142 priv_dst->rate = priv_src->rate; in nft_limit_clone()143 priv_dst->nsecs = priv_src->nsecs; in nft_limit_clone()144 priv_dst->burst = priv_src->burst; in nft_limit_clone()145 priv_dst->invert = priv_src->invert; in nft_limit_clone()147 priv_dst->limit = kmalloc(sizeof(*priv_dst->limit), GFP_ATOMIC); in nft_limit_clone()148 if (!priv_dst->limit) in nft_limit_clone()151 spin_lock_init(&priv_dst->limit->lock); in nft_limit_clone()152 priv_dst->limit->tokens = priv_src->tokens_max; in nft_limit_clone()[all …]
214 struct nft_connlimit *priv_dst = nft_expr_priv(dst); in nft_connlimit_clone() local217 priv_dst->list = kmalloc(sizeof(*priv_dst->list), GFP_ATOMIC); in nft_connlimit_clone()218 if (!priv_dst->list) in nft_connlimit_clone()221 nf_conncount_list_init(priv_dst->list); in nft_connlimit_clone()222 priv_dst->limit = priv_src->limit; in nft_connlimit_clone()223 priv_dst->invert = priv_src->invert; in nft_connlimit_clone()
106 struct nft_last_priv *priv_dst = nft_expr_priv(dst); in nft_last_clone() local108 priv_dst->last = kzalloc(sizeof(*priv_dst->last), GFP_ATOMIC); in nft_last_clone()109 if (!priv_dst->last) in nft_last_clone()
237 struct nft_quota *priv_dst = nft_expr_priv(dst); in nft_quota_clone() local239 priv_dst->consumed = kmalloc(sizeof(*priv_dst->consumed), GFP_ATOMIC); in nft_quota_clone()240 if (!priv_dst->consumed) in nft_quota_clone()243 atomic64_set(priv_dst->consumed, 0); in nft_quota_clone()