Lines Matching refs:dec
158 struct mpls_entry_decoded dec; in mpls_multipath_hash() local
173 dec = mpls_entry_decode(hdr); in mpls_multipath_hash()
178 if (likely(dec.label >= MPLS_LABEL_FIRST_UNRESERVED)) { in mpls_multipath_hash()
179 hash = jhash_1word(dec.label, hash); in mpls_multipath_hash()
189 } else if (dec.label == MPLS_LABEL_ENTROPY) { in mpls_multipath_hash()
193 if (!dec.bos) in mpls_multipath_hash()
270 struct sk_buff *skb, struct mpls_entry_decoded dec) in mpls_egress() argument
305 new_ttl = dec.ttl; in mpls_egress()
327 hdr6->hop_limit = dec.ttl; in mpls_egress()
348 struct mpls_entry_decoded dec; in mpls_forward() local
382 dec = mpls_entry_decode(hdr); in mpls_forward()
384 rt = mpls_route_input_rcu(net, dec.label); in mpls_forward()
406 if (dec.ttl <= 1) in mpls_forward()
408 dec.ttl -= 1; in mpls_forward()
432 if (unlikely(!new_header_size && dec.bos)) { in mpls_forward()
434 if (!mpls_egress(dev_net(out_dev), rt, skb, dec)) in mpls_forward()
443 bos = dec.bos; in mpls_forward()
446 dec.ttl, 0, bos); in mpls_forward()
1772 struct mpls_entry_decoded dec; in nla_get_labels() local
1773 dec = mpls_entry_decode(nla_label + i); in nla_get_labels()
1778 if (dec.ttl) { in nla_get_labels()
1784 if (dec.tc) { in nla_get_labels()
1790 if (dec.bos != bos) { in nla_get_labels()
1802 switch (dec.label) { in nla_get_labels()
1813 label[i] = dec.label; in nla_get_labels()