Lines Matching defs:opt
448 struct tc_pedit *opt;
452 s = struct_size(opt, keys, p->tcfp_nkeys);
455 opt = kzalloc(s, GFP_ATOMIC);
456 if (unlikely(!opt))
460 memcpy(opt->keys, p->tcfp_keys, flex_array_size(opt, keys, p->tcfp_nkeys));
461 opt->index = p->tcf_index;
462 opt->nkeys = p->tcfp_nkeys;
463 opt->flags = p->tcfp_flags;
464 opt->action = p->tcf_action;
465 opt->refcnt = refcount_read(&p->tcf_refcnt) - ref;
466 opt->bindcnt = atomic_read(&p->tcf_bindcnt) - bind;
474 if (nla_put(skb, TCA_PEDIT_PARMS_EX, s, opt))
477 if (nla_put(skb, TCA_PEDIT_PARMS, s, opt))
486 kfree(opt);
492 kfree(opt);