Home
last modified time | relevance | path

Searched refs:tcfp_keys (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/include/net/tc_act/
H A 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/
H A Dact_pedit.c227 kfree(p->tcfp_keys); in tcf_pedit_init()
228 p->tcfp_keys = keys; in tcf_pedit_init()
231 memcpy(p->tcfp_keys, parm->keys, ksize); in tcf_pedit_init()
234 u32 cur = p->tcfp_keys[i].off; in tcf_pedit_init()
237 p->tcfp_keys[i].shift = min_t(size_t, BITS_PER_TYPE(int) - 1, in tcf_pedit_init()
238 p->tcfp_keys[i].shift); in tcf_pedit_init()
243 cur += (0xff & p->tcfp_keys[i].offmask) >> p->tcfp_keys[i].shift; in tcf_pedit_init()
274 struct tc_pedit_key *keys = p->tcfp_keys; in tcf_pedit_cleanup()
343 struct tc_pedit_key *tkey = p->tcfp_keys; in tcf_pedit_act()
[all...]
/kernel/linux/linux-6.6/include/net/tc_act/
H A Dtc_pedit.h15 struct tc_pedit_key *tcfp_keys; member
88 mask = parms->tcfp_keys[index].mask; in tcf_pedit_mask()
101 val = parms->tcfp_keys[index].val; in tcf_pedit_val()
114 off = parms->tcfp_keys[index].off; in tcf_pedit_offset()
/kernel/linux/linux-6.6/net/sched/
H A Dact_pedit.c151 kfree(parms->tcfp_keys); in tcf_pedit_cleanup_rcu()
249 nparms->tcfp_keys = kmemdup(parm->keys, ksize, GFP_KERNEL); in tcf_pedit_init()
250 if (!nparms->tcfp_keys) { in tcf_pedit_init()
256 u32 offmask = nparms->tcfp_keys[i].offmask; in tcf_pedit_init()
257 u32 cur = nparms->tcfp_keys[i].off; in tcf_pedit_init()
267 nparms->tcfp_keys[i].shift = min_t(size_t, in tcf_pedit_init()
269 nparms->tcfp_keys[i].shift); in tcf_pedit_init()
274 cur += (0xff & offmask) >> nparms->tcfp_keys[i].shift; in tcf_pedit_init()
297 kfree(nparms->tcfp_keys); in tcf_pedit_init()
411 tkey = parms->tcfp_keys; in tcf_pedit_act()
[all...]

Completed in 3 milliseconds