net: mpls: bump maximum number of labels
authorDavid Ahern <dsa@cumulusnetworks.com>
Fri, 31 Mar 2017 14:14:03 +0000 (07:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Apr 2017 03:21:44 +0000 (20:21 -0700)
commita4ac8c986d3f72ccbaf6d6782511fb645e568306
tree7b0a525484b6ed0a7adca3bc4f3848f5f3aa37d1
parentdf1c631648c55bfb247339279f9bc573c7f283f4
net: mpls: bump maximum number of labels

Allow users to push down more labels per MPLS route. With the previous
patches, no memory allocations are based on MAX_NEW_LABELS; the limit
is only used to keep userspace in check.

At this point MAX_NEW_LABELS is only used for mpls_route_config (copying
route data from userspace) and processing nexthops looking for the max
number of labels across the route spec.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c
net/mpls/internal.h