mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
c961b1ccd0
commit
a6affd24f4
2 changed files with 13 additions and 10 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue