Lines Matching refs:mv
49 struct mask_value *mv; member
142 p->mv[*arg - 1].value = nla_get_u8(tb[TCA_DSMARK_VALUE]); in dsmark_change()
145 p->mv[*arg - 1].mask = nla_get_u8(tb[TCA_DSMARK_MASK]); in dsmark_change()
160 p->mv[arg - 1].mask = 0xff; in dsmark_delete()
161 p->mv[arg - 1].value = 0; in dsmark_delete()
178 if (p->mv[i].mask == 0xff && !p->mv[i].value) in dsmark_walk()
308 ipv4_change_dsfield(ip_hdr(skb), p->mv[index].mask, in dsmark_dequeue()
309 p->mv[index].value); in dsmark_dequeue()
312 ipv6_change_dsfield(ipv6_hdr(skb), p->mv[index].mask, in dsmark_dequeue()
313 p->mv[index].value); in dsmark_dequeue()
321 if (p->mv[index].mask != 0xff || p->mv[index].value) in dsmark_dequeue()
375 p->mv = p->embedded; in dsmark_init()
377 p->mv = kmalloc_array(indices, sizeof(*p->mv), GFP_KERNEL); in dsmark_init()
378 if (!p->mv) { in dsmark_init()
383 p->mv[i].mask = 0xff; in dsmark_init()
384 p->mv[i].value = 0; in dsmark_init()
422 if (p->mv != p->embedded) in dsmark_destroy()
423 kfree(p->mv); in dsmark_destroy()
443 if (nla_put_u8(skb, TCA_DSMARK_MASK, p->mv[cl - 1].mask) || in dsmark_dump_class()
444 nla_put_u8(skb, TCA_DSMARK_VALUE, p->mv[cl - 1].value)) in dsmark_dump_class()