Lines Matching defs:sel
63 struct tc_u32_sel sel;
90 static __inline__ unsigned u32_hash_fold(__be32 key, struct tc_u32_sel *sel, u8 fshift)
92 unsigned h = ntohl(key & sel->hmask)>>fshift;
109 int sel = 0;
116 n = ht->ht[sel];
120 struct tc_u32_key *key = n->sel.keys;
136 for (i = n->sel.nkeys; i>0; i--, key++) {
157 if (n->sel.flags&TC_U32_TERMINAL) {
189 sel = 0;
193 data = skb_header_pointer(skb, off + n->sel.hoff, 4,
197 sel = ht->divisor & u32_hash_fold(*data, &n->sel,
200 if (!(n->sel.flags&(TC_U32_VAROFFSET|TC_U32_OFFSET|TC_U32_EAT)))
203 if (n->sel.flags&(TC_U32_OFFSET|TC_U32_VAROFFSET)) {
204 off2 = n->sel.off + 3;
205 if (n->sel.flags & TC_U32_VAROFFSET) {
209 off + n->sel.offoff,
213 off2 += ntohs(n->sel.offmask & *data) >>
214 n->sel.offshift;
218 if (n->sel.flags&TC_U32_EAT) {
258 unsigned sel;
261 sel = TC_U32_HASH(handle);
262 if (sel > ht->divisor)
265 for (n = ht->ht[sel]; n; n = n->next)
644 memcpy(&n->sel, s, sizeof(*s) + s->nkeys*sizeof(struct tc_u32_key));
738 sizeof(n->sel) + n->sel.nkeys*sizeof(struct tc_u32_key),
739 &n->sel);
763 sizeof(struct tc_u32_pcnt) + n->sel.nkeys*sizeof(u64),