Lines Matching defs:sel

63 	/* The 'sel' field MUST be the last field in structure to allow for
66 struct tc_u32_sel sel;
95 const struct tc_u32_sel *sel,
98 unsigned int h = ntohl(key & sel->hmask) >> fshift;
116 int sel = 0;
123 n = rcu_dereference_bh(ht->ht[sel]);
127 struct tc_u32_key *key = n->sel.keys;
148 for (i = n->sel.nkeys; i > 0; i--, key++) {
171 if (n->sel.flags & TC_U32_TERMINAL) {
201 sel = 0;
205 data = skb_header_pointer(skb, off + n->sel.hoff, 4,
209 sel = ht->divisor & u32_hash_fold(*data, &n->sel,
212 if (!(n->sel.flags & (TC_U32_VAROFFSET | TC_U32_OFFSET | TC_U32_EAT)))
215 if (n->sel.flags & (TC_U32_OFFSET | TC_U32_VAROFFSET)) {
216 off2 = n->sel.off + 3;
217 if (n->sel.flags & TC_U32_VAROFFSET) {
221 off + n->sel.offoff,
225 off2 += ntohs(n->sel.offmask & *data) >>
226 n->sel.offshift;
230 if (n->sel.flags & TC_U32_EAT) {
269 unsigned int sel;
272 sel = TC_U32_HASH(handle);
273 if (sel > ht->divisor)
276 for (n = rtnl_dereference(ht->ht[sel]);
553 cls_u32.knode.sel = &n->sel;
802 struct tc_u32_sel *s = &n->sel;
805 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL);
832 memcpy(&new->sel, s, struct_size(s, keys, s->nkeys));
1071 n = kzalloc(struct_size(n, sel.keys, s->nkeys), GFP_KERNEL);
1086 memcpy(&n->sel, s, sel_size);
1239 cls_u32.knode.sel = &n->sel;
1343 if (nla_put(skb, TCA_U32_SEL, struct_size(&n->sel, keys, n->sel.nkeys),
1344 &n->sel))
1393 gpf = kzalloc(struct_size(gpf, kcnts, n->sel.nkeys), GFP_KERNEL);
1403 for (i = 0; i < n->sel.nkeys; i++)
1407 if (nla_put_64bit(skb, TCA_U32_PCNT, struct_size(gpf, kcnts, n->sel.nkeys),