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 */
1688 u8 labels, const u32 label[])
1701 nla_label[i] = mpls_entry_encode(label[i], 0, 0, bos);
1710 u32 label[], struct netlink_ext_ack *extack)
1718 /* len needs to be an even multiple of 4 (the label size). Number
1734 /* when label == NULL, caller wants number of labels */
1735 if (!label)
1749 "TTL in label must be 0");
1755 "Traffic class in label must be 0");
1763 "BOS bit must be set in first label");
1766 "BOS bit can only be set in first label");
1771 switch (dec.label) {
1773 /* RFC3032: This is a label that an LSR may
1782 label[i] = dec.label;
1973 u32 label, struct mpls_route *rt, int flags)
1994 if (nla_put_labels(skb, RTA_DST, 1, &label))
2258 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt,
2270 err = mpls_dump_route(skb, portid, seq, event, label, rt, nlm_flags);