Lines Matching refs:nh_label
46 nhl1 = nh1->nh_label; in _nexthop_labels_cmp()
47 nhl2 = nh2->nh_label; in _nexthop_labels_cmp()
435 struct mpls_label_stack *nh_label; in nexthop_add_labels() local
447 nh_label = XCALLOC(MTYPE_NH_LABEL, in nexthop_add_labels()
450 nh_label->num_labels = num_labels; in nexthop_add_labels()
452 nh_label->label[i] = *(labels + i); in nexthop_add_labels()
453 nexthop->nh_label = nh_label; in nexthop_add_labels()
459 XFREE(MTYPE_NH_LABEL, nexthop->nh_label); in nexthop_del_labels()
553 if (nexthop->nh_label) { in nexthop_hash_quick()
554 int labels = nexthop->nh_label->num_labels; in nexthop_hash_quick()
559 key = jhash_3words(nexthop->nh_label->label[i], in nexthop_hash_quick()
560 nexthop->nh_label->label[i + 1], in nexthop_hash_quick()
561 nexthop->nh_label->label[i + 2], in nexthop_hash_quick()
568 key = jhash_2words(nexthop->nh_label->label[i], in nexthop_hash_quick()
569 nexthop->nh_label->label[i + 1], in nexthop_hash_quick()
576 key = jhash_1word(nexthop->nh_label->label[i], key); in nexthop_hash_quick()
656 if (nexthop->nh_label) in nexthop_copy_no_recurse()
658 nexthop->nh_label->num_labels, in nexthop_copy_no_recurse()
659 &nexthop->nh_label->label[0]); in nexthop_copy_no_recurse()