diff options
author | 2017-03-31 07:14:03 -0700 | |
---|---|---|
committer | 2017-04-01 20:21:44 -0700 | |
commit | a4ac8c986d3f72ccbaf6d6782511fb645e568306 (patch) | |
tree | 7b0a525484b6ed0a7adca3bc4f3848f5f3aa37d1 /net/mpls/internal.h | |
parent | net: mpls: Limit memory allocation for mpls_route (diff) | |
download | linux-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.h | 2 |
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[]); |