summaryrefslogtreecommitdiffstats
path: root/net/mpls/internal.h
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2017-03-31 07:14:03 -0700
committerDavid S. Miller <davem@davemloft.net>2017-04-01 20:21:44 -0700
commita4ac8c986d3f72ccbaf6d6782511fb645e568306 (patch)
tree7b0a525484b6ed0a7adca3bc4f3848f5f3aa37d1 /net/mpls/internal.h
parentdf1c631648c55bfb247339279f9bc573c7f283f4 (diff)
downloadlinux-a4ac8c986d3f72ccbaf6d6782511fb645e568306.tar.gz
linux-a4ac8c986d3f72ccbaf6d6782511fb645e568306.tar.bz2
linux-a4ac8c986d3f72ccbaf6d6782511fb645e568306.zip
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>
Diffstat (limited to 'net/mpls/internal.h')
-rw-r--r--net/mpls/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mpls/internal.h b/net/mpls/internal.h
index cc324c022049..c5d2f5bc37ec 100644
--- a/net/mpls/internal.h
+++ b/net/mpls/internal.h
@@ -197,7 +197,7 @@ static inline struct mpls_dev *mpls_dev_get(const struct net_device *dev)
int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels,
const u32 label[]);
-int nla_get_labels(const struct nlattr *nla, u32 max_labels, u8 *labels,
+int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels,
u32 label[]);
int nla_get_via(const struct nlattr *nla, u8 *via_alen, u8 *via_table,
u8 via[]);