Searched refs:nparms (Results 1 – 2 of 2) sorted by relevance
164 struct tcf_pedit_parms *oparms, *nparms; in tcf_pedit_init() local226 nparms = kzalloc(sizeof(*nparms), GFP_KERNEL); in tcf_pedit_init()227 if (!nparms) { in tcf_pedit_init()232 nparms->tcfp_keys_ex = in tcf_pedit_init()234 if (IS_ERR(nparms->tcfp_keys_ex)) { in tcf_pedit_init()235 ret = PTR_ERR(nparms->tcfp_keys_ex); in tcf_pedit_init()245 nparms->tcfp_off_max_hint = 0; in tcf_pedit_init()246 nparms->tcfp_flags = parm->flags; in tcf_pedit_init()247 nparms->tcfp_nkeys = parm->nkeys; in tcf_pedit_init()249 nparms->tcfp_keys = kmemdup(parm->keys, ksize, GFP_KERNEL); in tcf_pedit_init()[all …]
104 struct tcf_connmark_parms *nparms, *oparms; in tcf_connmark_init() local124 nparms = kzalloc(sizeof(*nparms), GFP_KERNEL); in tcf_connmark_init()125 if (!nparms) in tcf_connmark_init()142 nparms->net = net; in tcf_connmark_init()143 nparms->zone = parm->zone; in tcf_connmark_init()157 nparms->net = rtnl_dereference(ci->parms)->net; in tcf_connmark_init()158 nparms->zone = parm->zone; in tcf_connmark_init()172 oparms = rcu_replace_pointer(ci->parms, nparms, lockdep_is_held(&ci->tcf_lock)); in tcf_connmark_init()186 kfree(nparms); in tcf_connmark_init()