Home
last modified time | relevance | path

Searched refs:nkeys (Results 1 – 4 of 4) sorted by relevance

/net/sched/
A Dcls_flow.c47 u32 nkeys; member
318 for (n = 0; n < f->nkeys; n++) { in flow_classify()
325 classid = jhash2(keys, f->nkeys, f->hashrnd); in flow_classify()
400 unsigned int nkeys = 0; in flow_change() local
424 nkeys = hweight32(keymask); in flow_change()
425 if (nkeys == 0) in flow_change()
462 fnew->nkeys = fold->nkeys; in flow_change()
476 if (mode != FLOW_MODE_HASH && nkeys > 1) in flow_change()
496 if (mode != FLOW_MODE_HASH && nkeys > 1) in flow_change()
525 fnew->nkeys = nkeys; in flow_change()
A Dact_pedit.c214 if (!parm->nkeys) { in tcf_pedit_init()
219 ksize = parm->nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_init()
233 tcf_pedit_keys_ex_parse(tb[TCA_PEDIT_KEYS_EX], parm->nkeys, extack); in tcf_pedit_init()
247 nparms->tcfp_nkeys = parm->nkeys; in tcf_pedit_init()
518 opt->nkeys = parms->tcfp_nkeys; in tcf_pedit_dump()
A Dcls_u32.c160 for (i = n->sel.nkeys; i > 0; i--, key++) { in u32_classify()
829 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL); in u32_init_knode()
856 memcpy(&new->sel, s, struct_size(s, keys, s->nkeys)); in u32_init_knode()
1102 sel_size = struct_size(s, keys, s->nkeys); in u32_change()
1108 n = kzalloc(struct_size(n, sel.keys, s->nkeys), GFP_KERNEL); in u32_change()
1115 n->pf = __alloc_percpu(struct_size(n->pf, kcnts, s->nkeys), in u32_change()
1371 if (nla_put(skb, TCA_U32_SEL, struct_size(&n->sel, keys, n->sel.nkeys), in u32_dump()
1421 gpf = kzalloc(struct_size(gpf, kcnts, n->sel.nkeys), GFP_KERNEL); in u32_dump()
1431 for (i = 0; i < n->sel.nkeys; i++) in u32_dump()
1435 if (nla_put_64bit(skb, TCA_U32_PCNT, struct_size(gpf, kcnts, n->sel.nkeys), in u32_dump()
/net/ipv4/
A Dtcp_ao.c2144 max_keys = opt_in.nkeys; in tcp_ao_copy_mkts_to_user()
2278 opt_out.nkeys = 0; in tcp_ao_copy_mkts_to_user()
2298 out_offset = offsetof(struct tcp_ao_getsockopt, nkeys); in tcp_ao_copy_mkts_to_user()

Completed in 19 milliseconds