Lines Matching defs:opt
505 struct tc_pedit *opt;
511 s = struct_size(opt, keys, parms->tcfp_nkeys);
513 opt = kzalloc(s, GFP_ATOMIC);
514 if (unlikely(!opt)) {
518 opt->nkeys = parms->tcfp_nkeys;
520 memcpy(opt->keys, parms->tcfp_keys,
521 flex_array_size(opt, keys, parms->tcfp_nkeys));
522 opt->index = p->tcf_index;
523 opt->flags = parms->tcfp_flags;
524 opt->action = p->tcf_action;
525 opt->refcnt = refcount_read(&p->tcf_refcnt) - ref;
526 opt->bindcnt = atomic_read(&p->tcf_bindcnt) - bind;
533 if (nla_put(skb, TCA_PEDIT_PARMS_EX, s, opt))
536 if (nla_put(skb, TCA_PEDIT_PARMS, s, opt))
545 kfree(opt);
551 kfree(opt);