Lines Matching refs:indices
36 * x:indices-1 indices use entry [indices-1]
38 * x:y y+1 use entry [y & (indices-1)]
40 * 0xffff 0x10000 use entry [indices-1]
51 u16 indices;
56 static inline int dsmark_valid_indices(u16 indices)
58 while (indices != 1) {
59 if (indices & 1)
61 indices >>= 1;
69 return (index <= p->indices && index > 0);
179 for (i = 0; i < p->indices; i++) {
277 index = skb->tc_index & (p->indices - 1);
347 u16 indices;
355 indices = RTA_GET_U16(tb[TCA_DSMARK_INDICES-1]);
356 if (!indices || !dsmark_valid_indices(indices))
362 mask = kmalloc(indices * 2, GFP_KERNEL);
369 memset(p->mask, 0xff, indices);
371 p->value = p->mask + indices;
372 memset(p->value, 0, indices);
374 p->indices = indices;
440 RTA_PUT_U16(skb, TCA_DSMARK_INDICES, p->indices);