Lines Matching refs:dec
104 struct mpls_entry_decoded dec; in mpls_multipath_hash() local
119 dec = mpls_entry_decode(hdr); in mpls_multipath_hash()
124 if (likely(dec.label >= MPLS_LABEL_FIRST_UNRESERVED)) { in mpls_multipath_hash()
125 hash = jhash_1word(dec.label, hash); in mpls_multipath_hash()
135 } else if (dec.label == MPLS_LABEL_ENTROPY) { in mpls_multipath_hash()
139 if (!dec.bos) in mpls_multipath_hash()
203 struct mpls_entry_decoded dec) in mpls_egress() argument
231 htons(dec.ttl << 8)); in mpls_egress()
232 hdr4->ttl = dec.ttl; in mpls_egress()
239 hdr6->hop_limit = dec.ttl; in mpls_egress()
257 struct mpls_entry_decoded dec; in mpls_forward() local
282 dec = mpls_entry_decode(hdr); in mpls_forward()
284 rt = mpls_route_input_rcu(net, dec.label); in mpls_forward()
309 if (dec.ttl <= 1) in mpls_forward()
311 dec.ttl -= 1; in mpls_forward()
330 if (unlikely(!new_header_size && dec.bos)) { in mpls_forward()
332 if (!mpls_egress(rt, skb, dec)) in mpls_forward()
341 bos = dec.bos; in mpls_forward()
344 dec.ttl, 0, bos); in mpls_forward()
1153 struct mpls_entry_decoded dec; in nla_get_labels() local
1154 dec = mpls_entry_decode(nla_label + i); in nla_get_labels()
1159 if ((dec.bos != bos) || dec.ttl || dec.tc) in nla_get_labels()
1162 switch (dec.label) { in nla_get_labels()
1171 label[i] = dec.label; in nla_get_labels()