Re: [PATCH iproute2] ip: add support for more MPLS labels

2017-05-22 Thread Stephen Hemminger
On Sat, 13 May 2017 19:27:02 -0600 David Ahern wrote: > Kernel now supports up to 30 labels but not defined as part of the uapi. > iproute2 handles up to 8 labels but in a non-consistent way. Update ip > to handle more labels, but in a more programmatic way. > > For the MPLS address family, the

Re: [PATCH iproute2] ip: add support for more MPLS labels

2017-05-16 Thread David Ahern
On 5/16/17 1:32 AM, Simon Horman wrote: >> diff --git a/lib/mpls_pton.c b/lib/mpls_pton.c >> index bd448cfcf14a..6d2e6a69436a 100644 >> --- a/lib/mpls_pton.c >> +++ b/lib/mpls_pton.c >> @@ -7,12 +7,13 @@ >> #include "utils.h" >> >> >> -static int mpls_pton1(const char *name, struct mpls_label

Re: [PATCH iproute2] ip: add support for more MPLS labels

2017-05-16 Thread Simon Horman
On Sat, May 13, 2017 at 07:27:02PM -0600, David Ahern wrote: > Kernel now supports up to 30 labels but not defined as part of the uapi. > iproute2 handles up to 8 labels but in a non-consistent way. Update ip > to handle more labels, but in a more programmatic way. > > For the MPLS address family,

[PATCH iproute2] ip: add support for more MPLS labels

2017-05-13 Thread David Ahern
Kernel now supports up to 30 labels but not defined as part of the uapi. iproute2 handles up to 8 labels but in a non-consistent way. Update ip to handle more labels, but in a more programmatic way. For the MPLS address family, the data field in inet_prefix is used for labels. Increase that field