Searched refs:nparms (Results 1 – 2 of 2) sorted by relevance
167 struct tcf_pedit_parms *oparms, *nparms; in tcf_pedit_init() local229 nparms = kzalloc_obj(*nparms); in tcf_pedit_init()230 if (!nparms) { in tcf_pedit_init()235 nparms->tcfp_keys_ex = in tcf_pedit_init()237 if (IS_ERR(nparms->tcfp_keys_ex)) { in tcf_pedit_init()238 ret = PTR_ERR(nparms->tcfp_keys_ex); in tcf_pedit_init()248 nparms->tcfp_flags = parm->flags; in tcf_pedit_init()249 nparms->tcfp_nkeys = parm->nkeys; in tcf_pedit_init()251 nparms->tcfp_keys = kmemdup(parm->keys, ksize, GFP_KERNEL); in tcf_pedit_init()252 if (!nparms->tcfp_keys) { in tcf_pedit_init()[all …]
104 struct tcf_connmark_parms *nparms, *oparms; in tcf_connmark_init() local124 nparms = kzalloc_obj(*nparms); 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()170 nparms->action = parm->action; in tcf_connmark_init()174 oparms = rcu_replace_pointer(ci->parms, nparms, lockdep_is_held(&ci->tcf_lock)); in tcf_connmark_init()188 kfree(nparms); in tcf_connmark_init()