Re: [PATCH net-next iproute2] ip: increase number of MPLS labels

2017-05-01 Thread Eric W. Biederman
David Ahern writes: > On 5/1/17 3:03 PM, Eric W. Biederman wrote: >> Basically the kernel maximum is how large we can make struct mpls_route >> without while being < 4096 aka PAGE_SIZE. Which also happens to be >> larger than the largest known consumer. > > 2 limits in the kernel: > 1. max alloc

Re: [PATCH net-next iproute2] ip: increase number of MPLS labels

2017-05-01 Thread David Ahern
On 5/1/17 3:03 PM, Eric W. Biederman wrote: > Basically the kernel maximum is how large we can make struct mpls_route > without while being < 4096 aka PAGE_SIZE. Which also happens to be > larger than the largest known consumer. 2 limits in the kernel: 1. max allocation for mpls_route of 4096 2.

Re: [PATCH net-next iproute2] ip: increase number of MPLS labels

2017-05-01 Thread Eric W. Biederman
Stephen Hemminger writes: > On Sun, 30 Apr 2017 17:42:15 -0600 > David Ahern wrote: > >> On 4/30/17 12:04 AM, Stephen Hemminger wrote: >> > On Sat, 29 Apr 2017 20:48:50 -0700 >> > David Ahern wrote: >> > >> >> Kernel now supports more than 2 labels. Increase ip to >> >> handle up to 16 label

Re: [PATCH net-next iproute2] ip: increase number of MPLS labels

2017-05-01 Thread Stephen Hemminger
On Sun, 30 Apr 2017 17:42:15 -0600 David Ahern wrote: > On 4/30/17 12:04 AM, Stephen Hemminger wrote: > > On Sat, 29 Apr 2017 20:48:50 -0700 > > David Ahern wrote: > > > >> Kernel now supports more than 2 labels. Increase ip to > >> handle up to 16 labels. > >> > >> Signed-off-by: David Ahern

Re: [PATCH net-next iproute2] ip: increase number of MPLS labels

2017-04-30 Thread David Ahern
On 4/30/17 12:04 AM, Stephen Hemminger wrote: > On Sat, 29 Apr 2017 20:48:50 -0700 > David Ahern wrote: > >> Kernel now supports more than 2 labels. Increase ip to >> handle up to 16 labels. >> >> Signed-off-by: David Ahern >> --- >> include/utils.h | 8 >> lib/utils.c | 2 +- >> 2

Re: [PATCH net-next iproute2] ip: increase number of MPLS labels

2017-04-29 Thread Stephen Hemminger
On Sat, 29 Apr 2017 20:48:50 -0700 David Ahern wrote: > Kernel now supports more than 2 labels. Increase ip to > handle up to 16 labels. > > Signed-off-by: David Ahern > --- > include/utils.h | 8 > lib/utils.c | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff -

[PATCH net-next iproute2] ip: increase number of MPLS labels

2017-04-29 Thread David Ahern
Kernel now supports more than 2 labels. Increase ip to handle up to 16 labels. Signed-off-by: David Ahern --- include/utils.h | 8 lib/utils.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/utils.h b/include/utils.h index 8c12e1e2a60c..a69e176c260d 10