Lines Matching refs:dec
104 struct mpls_entry_decoded dec; in mpls_select_multipath() local
124 dec = mpls_entry_decode(hdr); in mpls_select_multipath()
129 if (likely(dec.label >= MPLS_LABEL_FIRST_UNRESERVED)) { in mpls_select_multipath()
130 hash = jhash_1word(dec.label, hash); in mpls_select_multipath()
140 } else if (dec.label == MPLS_LABEL_ENTROPY) { in mpls_select_multipath()
144 bos = dec.bos; in mpls_select_multipath()
176 struct mpls_entry_decoded dec) in mpls_egress() argument
204 htons(dec.ttl << 8)); in mpls_egress()
205 hdr4->ttl = dec.ttl; in mpls_egress()
212 hdr6->hop_limit = dec.ttl; in mpls_egress()
230 struct mpls_entry_decoded dec; in mpls_forward() local
255 dec = mpls_entry_decode(hdr); in mpls_forward()
263 rt = mpls_route_input_rcu(net, dec.label); in mpls_forward()
267 nh = mpls_select_multipath(rt, skb, dec.bos); in mpls_forward()
282 if (dec.ttl <= 1) in mpls_forward()
284 dec.ttl -= 1; in mpls_forward()
303 if (unlikely(!new_header_size && dec.bos)) { in mpls_forward()
305 if (!mpls_egress(rt, skb, dec)) in mpls_forward()
314 bos = dec.bos; in mpls_forward()
317 dec.ttl, 0, bos); in mpls_forward()
1029 struct mpls_entry_decoded dec; in nla_get_labels() local
1030 dec = mpls_entry_decode(nla_label + i); in nla_get_labels()
1035 if ((dec.bos != bos) || dec.ttl || dec.tc) in nla_get_labels()
1038 switch (dec.label) { in nla_get_labels()
1047 label[i] = dec.label; in nla_get_labels()