Lines Matching defs:label
73 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt,
171 /* Read and decode the current label */
178 if (likely(dec.label >= MPLS_LABEL_FIRST_UNRESERVED)) {
179 hash = jhash_1word(dec.label, hash);
181 /* The entropy label follows the entropy label
183 * label was just added to the hash - no need to
184 * go any deeper either in the label stack or in the
189 } else if (dec.label == MPLS_LABEL_ENTROPY) {
196 /* found bottom label; does skb have room for a header? */
380 /* Read and decode the label */
384 rt = mpls_route_input_rcu(net, dec.label);
394 /* Pop the label */
945 "Invalid label - must be MPLS_LABEL_FIRST_UNRESERVED or higher");
974 /* If a label was not specified during insert pick one */
1708 u8 labels, const u32 label[])
1721 nla_label[i] = mpls_entry_encode(label[i], 0, 0, bos);
1730 u32 label[], struct netlink_ext_ack *extack)
1738 /* len needs to be an even multiple of 4 (the label size). Number
1754 /* when label == NULL, caller wants number of labels */
1755 if (!label)
1769 "TTL in label must be 0");
1775 "Traffic class in label must be 0");
1783 "BOS bit must be set in first label");
1786 "BOS bit can only be set in first label");
1791 switch (dec.label) {
1793 /* RFC3032: This is a label that an LSR may
1802 label[i] = dec.label;
1993 u32 label, struct mpls_route *rt, int flags)
2014 if (nla_put_labels(skb, RTA_DST, 1, &label))
2280 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt,
2292 err = mpls_dump_route(skb, portid, seq, event, label, rt, nlm_flags);