[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170522110427.5da21124@xeon-e3>
Date: Mon, 22 May 2017 11:04:27 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: David Ahern <dsahern@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH iproute2] ip: add support for more MPLS labels
On Sat, 13 May 2017 19:27:02 -0600
David Ahern <dsahern@...il.com> 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 data field in inet_prefix is used for
> labels. Increase that field to 64 u32's -- 64 as nothing more than a
> convenient power of 2 number.
>
> Update mpls_pton to take the length of the address field, convert that
> length to number of labels and add better error handling to the parsing
> of the user supplied string.
>
> Signed-off-by: David Ahern <dsahern@...il.com>
Looks good applied
Powered by blists - more mailing lists