Home
last modified time | relevance | path

Searched refs:tcfp_keys (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/include/net/tc_act/
Dtc_pedit.h18 struct tc_pedit_key *tcfp_keys; member
56 return to_pedit(a)->tcfp_keys[index].mask; in tcf_pedit_mask()
61 return to_pedit(a)->tcfp_keys[index].val; in tcf_pedit_val()
66 return to_pedit(a)->tcfp_keys[index].off; in tcf_pedit_offset()
/kernel/linux/linux-5.10/net/sched/
Dact_pedit.c226 kfree(p->tcfp_keys); in tcf_pedit_init()
227 p->tcfp_keys = keys; in tcf_pedit_init()
230 memcpy(p->tcfp_keys, parm->keys, ksize); in tcf_pedit_init()
233 u32 cur = p->tcfp_keys[i].off; in tcf_pedit_init()
236 p->tcfp_keys[i].shift = min_t(size_t, BITS_PER_TYPE(int) - 1, in tcf_pedit_init()
237 p->tcfp_keys[i].shift); in tcf_pedit_init()
242 cur += (0xff & p->tcfp_keys[i].offmask) >> p->tcfp_keys[i].shift; in tcf_pedit_init()
273 struct tc_pedit_key *keys = p->tcfp_keys; in tcf_pedit_cleanup()
342 struct tc_pedit_key *tkey = p->tcfp_keys; in tcf_pedit_act()
459 memcpy(opt->keys, p->tcfp_keys, flex_array_size(opt, keys, p->tcfp_nkeys)); in tcf_pedit_dump()