Lines Matching refs:opt
447 struct tc_pedit *opt; in tcf_pedit_dump() local
451 s = struct_size(opt, keys, p->tcfp_nkeys); in tcf_pedit_dump()
454 opt = kzalloc(s, GFP_ATOMIC); in tcf_pedit_dump()
455 if (unlikely(!opt)) in tcf_pedit_dump()
459 memcpy(opt->keys, p->tcfp_keys, flex_array_size(opt, keys, p->tcfp_nkeys)); in tcf_pedit_dump()
460 opt->index = p->tcf_index; in tcf_pedit_dump()
461 opt->nkeys = p->tcfp_nkeys; in tcf_pedit_dump()
462 opt->flags = p->tcfp_flags; in tcf_pedit_dump()
463 opt->action = p->tcf_action; in tcf_pedit_dump()
464 opt->refcnt = refcount_read(&p->tcf_refcnt) - ref; in tcf_pedit_dump()
465 opt->bindcnt = atomic_read(&p->tcf_bindcnt) - bind; in tcf_pedit_dump()
473 if (nla_put(skb, TCA_PEDIT_PARMS_EX, s, opt)) in tcf_pedit_dump()
476 if (nla_put(skb, TCA_PEDIT_PARMS, s, opt)) in tcf_pedit_dump()
485 kfree(opt); in tcf_pedit_dump()
491 kfree(opt); in tcf_pedit_dump()