]> git.baikalelectronics.ru Git - kernel.git/commit
mpls: Use definition for reserved label checks
authorRobert Shearman <rshearma@brocade.com>
Mon, 3 Aug 2015 16:50:04 +0000 (17:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2015 05:35:00 +0000 (22:35 -0700)
commita97a0d9bc666a1d7f51fb8e8e9a84b42c24fb7a0
tree4c022d3b90de98c9922ae1773802ef4a45bbb399
parentfe238da2f36bb2134190f03496e6339288d9ebbc
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>
include/uapi/linux/mpls.h
net/mpls/af_mpls.c