diff options
author | Robert Shearman <rshearma@brocade.com> | 2015-08-03 17:50:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-03 22:35:00 -0700 |
commit | a6affd24f439feddec04bab4d1e3ad6579868367 (patch) | |
tree | 4c022d3b90de98c9922ae1773802ef4a45bbb399 /include/uapi/linux/mpls.h | |
parent | c961b1ccd0f258bdee808c61c2c2a0907a1fffda (diff) | |
download | talos-obmc-linux-a6affd24f439feddec04bab4d1e3ad6579868367.tar.gz talos-obmc-linux-a6affd24f439feddec04bab4d1e3ad6579868367.zip |
mpls: Use definition for reserved label checks
In multiple locations there are checks for whether the label in hand
is a reserved label or not using the arbritray value of 16. Factor
this out into a #define for better maintainability and for
documentation.
Signed-off-by: Robert Shearman <rshearma@brocade.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/mpls.h')
-rw-r--r-- | include/uapi/linux/mpls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/mpls.h b/include/uapi/linux/mpls.h index 139d4dd1cab8..24a6cb1aec86 100644 --- a/include/uapi/linux/mpls.h +++ b/include/uapi/linux/mpls.h @@ -41,4 +41,6 @@ struct mpls_label { #define MPLS_LABEL_OAMALERT 14 /* RFC3429 */ #define MPLS_LABEL_EXTENSION 15 /* RFC7274 */ +#define MPLS_LABEL_FIRST_UNRESERVED 16 /* RFC3032 */ + #endif /* _UAPI_MPLS_H */ |