Searched refs:priv_dst (Results 1 – 4 of 4) sorted by relevance
152 static int nft_limit_clone(struct nft_limit_priv *priv_dst, in nft_limit_clone() argument155 priv_dst->tokens_max = priv_src->tokens_max; in nft_limit_clone()156 priv_dst->rate = priv_src->rate; in nft_limit_clone()157 priv_dst->nsecs = priv_src->nsecs; in nft_limit_clone()158 priv_dst->burst = priv_src->burst; in nft_limit_clone()159 priv_dst->invert = priv_src->invert; in nft_limit_clone()161 priv_dst->limit = kmalloc(sizeof(*priv_dst->limit), GFP_ATOMIC); in nft_limit_clone()162 if (!priv_dst->limit) in nft_limit_clone()165 spin_lock_init(&priv_dst->limit->lock); in nft_limit_clone()166 priv_dst->limit->tokens = priv_src->tokens_max; in nft_limit_clone()[all …]
106 struct nft_last_priv *priv_dst = nft_expr_priv(dst); in nft_last_clone() local109 priv_dst->last = kzalloc(sizeof(*priv_dst->last), GFP_ATOMIC); in nft_last_clone()110 if (!priv_dst->last) in nft_last_clone()113 priv_dst->last->set = priv_src->last->set; in nft_last_clone()114 priv_dst->last->jiffies = priv_src->last->jiffies; in nft_last_clone()
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()
237 struct nft_quota *priv_dst = nft_expr_priv(dst); in nft_quota_clone() local240 priv_dst->quota = priv_src->quota; in nft_quota_clone()241 priv_dst->flags = priv_src->flags; in nft_quota_clone()243 priv_dst->consumed = kmalloc(sizeof(*priv_dst->consumed), GFP_ATOMIC); in nft_quota_clone()244 if (!priv_dst->consumed) in nft_quota_clone()247 *priv_dst->consumed = *priv_src->consumed; in nft_quota_clone()