Lines Matching refs:dec
159 struct mpls_entry_decoded dec; in mpls_multipath_hash() local
174 dec = mpls_entry_decode(hdr); in mpls_multipath_hash()
179 if (likely(dec.label >= MPLS_LABEL_FIRST_UNRESERVED)) { in mpls_multipath_hash()
180 hash = jhash_1word(dec.label, hash); in mpls_multipath_hash()
190 } else if (dec.label == MPLS_LABEL_ENTROPY) { in mpls_multipath_hash()
194 if (!dec.bos) in mpls_multipath_hash()
271 struct sk_buff *skb, struct mpls_entry_decoded dec) in mpls_egress() argument
306 new_ttl = dec.ttl; in mpls_egress()
328 hdr6->hop_limit = dec.ttl; in mpls_egress()
349 struct mpls_entry_decoded dec; in mpls_forward() local
383 dec = mpls_entry_decode(hdr); in mpls_forward()
385 rt = mpls_route_input_rcu(net, dec.label); in mpls_forward()
407 if (dec.ttl <= 1) in mpls_forward()
409 dec.ttl -= 1; in mpls_forward()
433 if (unlikely(!new_header_size && dec.bos)) { in mpls_forward()
435 if (!mpls_egress(dev_net(out_dev), rt, skb, dec)) in mpls_forward()
444 bos = dec.bos; in mpls_forward()
447 dec.ttl, 0, bos); in mpls_forward()
1680 struct mpls_entry_decoded dec; in nla_get_labels() local
1681 dec = mpls_entry_decode(nla_label + i); in nla_get_labels()
1686 if (dec.ttl) { in nla_get_labels()
1692 if (dec.tc) { in nla_get_labels()
1698 if (dec.bos != bos) { in nla_get_labels()
1710 switch (dec.label) { in nla_get_labels()
1721 label[i] = dec.label; in nla_get_labels()