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>
This commit is contained in:

committed by
David S. Miller

parent
c961b1ccd0
commit
a6affd24f4
@@ -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 */
|
||||
|
Reference in New Issue
Block a user