Lines Matching defs:label
74 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt,
172 /* Read and decode the current label */
179 if (likely(dec.label >= MPLS_LABEL_FIRST_UNRESERVED)) {
180 hash = jhash_1word(dec.label, hash);
182 /* The entropy label follows the entropy label
184 * label was just added to the hash - no need to
185 * go any deeper either in the label stack or in the
190 } else if (dec.label == MPLS_LABEL_ENTROPY) {
197 /* found bottom label; does skb have room for a header? */
383 /* Read and decode the label */
387 rt = mpls_route_input_rcu(net, dec.label);
397 /* Pop the label */
948 "Invalid label - must be MPLS_LABEL_FIRST_UNRESERVED or higher");
977 /* If a label was not specified during insert pick one */
1705 u8 labels, const u32 label[])
1718 nla_label[i] = mpls_entry_encode(label[i], 0, 0, bos);
1727 u32 label[], struct netlink_ext_ack *extack)
1735 /* len needs to be an even multiple of 4 (the label size). Number
1751 /* when label == NULL, caller wants number of labels */
1752 if (!label)
1766 "TTL in label must be 0");
1772 "Traffic class in label must be 0");
1780 "BOS bit must be set in first label");
1783 "BOS bit can only be set in first label");
1788 switch (dec.label) {
1790 /* RFC3032: This is a label that an LSR may
1799 label[i] = dec.label;
1990 u32 label, struct mpls_route *rt, int flags)
2011 if (nla_put_labels(skb, RTA_DST, 1, &label))
2273 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt,
2285 err = mpls_dump_route(skb, portid, seq, event, label, rt, nlm_flags);