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)
commita6affd24f439feddec04bab4d1e3ad6579868367
tree4c022d3b90de98c9922ae1773802ef4a45bbb399
parentc961b1ccd0f258bdee808c61c2c2a0907a1fffda
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