Lines Matching refs:indices
43 u16 indices; member
50 return index <= p->indices && index > 0; in dsmark_valid_index()
175 for (i = 0; i < p->indices; i++) { in dsmark_walk()
289 index = skb->tc_index & (p->indices - 1); in dsmark_dequeue()
348 u16 indices; in dsmark_init() local
361 indices = nla_get_u16(tb[TCA_DSMARK_INDICES]); in dsmark_init()
363 if (hweight32(indices) != 1) in dsmark_init()
369 mask = kmalloc(indices * 2, GFP_KERNEL); in dsmark_init()
376 memset(p->mask, 0xff, indices); in dsmark_init()
378 p->value = p->mask + indices; in dsmark_init()
379 memset(p->value, 0, indices); in dsmark_init()
381 p->indices = indices; in dsmark_init()
452 if (nla_put_u16(skb, TCA_DSMARK_INDICES, p->indices)) in dsmark_dump()