• Home
  • Raw
  • Download

Lines Matching refs:sel

66 	struct tc_u32_sel	sel;  member
95 const struct tc_u32_sel *sel, in u32_hash_fold() argument
98 unsigned int h = ntohl(key & sel->hmask) >> fshift; in u32_hash_fold()
116 int sel = 0; in u32_classify() local
123 n = rcu_dereference_bh(ht->ht[sel]); in u32_classify()
127 struct tc_u32_key *key = n->sel.keys; in u32_classify()
148 for (i = n->sel.nkeys; i > 0; i--, key++) { in u32_classify()
171 if (n->sel.flags & TC_U32_TERMINAL) { in u32_classify()
201 sel = 0; in u32_classify()
205 data = skb_header_pointer(skb, off + n->sel.hoff, 4, in u32_classify()
209 sel = ht->divisor & u32_hash_fold(*data, &n->sel, in u32_classify()
212 if (!(n->sel.flags & (TC_U32_VAROFFSET | TC_U32_OFFSET | TC_U32_EAT))) in u32_classify()
215 if (n->sel.flags & (TC_U32_OFFSET | TC_U32_VAROFFSET)) { in u32_classify()
216 off2 = n->sel.off + 3; in u32_classify()
217 if (n->sel.flags & TC_U32_VAROFFSET) { in u32_classify()
221 off + n->sel.offoff, in u32_classify()
225 off2 += ntohs(n->sel.offmask & *data) >> in u32_classify()
226 n->sel.offshift; in u32_classify()
230 if (n->sel.flags & TC_U32_EAT) { in u32_classify()
269 unsigned int sel; in u32_lookup_key() local
272 sel = TC_U32_HASH(handle); in u32_lookup_key()
273 if (sel > ht->divisor) in u32_lookup_key()
276 for (n = rtnl_dereference(ht->ht[sel]); in u32_lookup_key()
553 cls_u32.knode.sel = &n->sel; in u32_replace_hw_knode()
802 struct tc_u32_sel *s = &n->sel; in u32_init_knode()
805 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL); in u32_init_knode()
832 memcpy(&new->sel, s, struct_size(s, keys, s->nkeys)); in u32_init_knode()
1071 n = kzalloc(struct_size(n, sel.keys, s->nkeys), GFP_KERNEL); in u32_change()
1086 memcpy(&n->sel, s, sel_size); in u32_change()
1238 cls_u32.knode.sel = &n->sel; in u32_reoffload_knode()
1338 if (nla_put(skb, TCA_U32_SEL, struct_size(&n->sel, keys, n->sel.nkeys), in u32_dump()
1339 &n->sel)) in u32_dump()
1388 gpf = kzalloc(struct_size(gpf, kcnts, n->sel.nkeys), GFP_KERNEL); in u32_dump()
1398 for (i = 0; i < n->sel.nkeys; i++) in u32_dump()
1402 if (nla_put_64bit(skb, TCA_U32_PCNT, struct_size(gpf, kcnts, n->sel.nkeys), in u32_dump()