From: ebiederm@xmission.com (Eric W. Biederman)
To: David Ahern <dsa@cumulusnetworks.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>,
netdev@vger.kernel.org, roopa <roopa@cumulusnetworks.com>
Subject: Re: [PATCH net-next iproute2] ip: increase number of MPLS labels
Date: Mon, 01 May 2017 16:57:04 -0500 [thread overview]
Message-ID: <8737comea7.fsf@xmission.com> (raw)
In-Reply-To: <70667d3a-5cbc-4900-3c41-bce508a057ac@cumulusnetworks.com> (David Ahern's message of "Mon, 1 May 2017 15:22:06 -0600")
David Ahern <dsa@cumulusnetworks.com> 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 allocation for mpls_route of 4096
> 2. max number of labels of 30.
Ah yes. I remember now. That conversation was just long enough ago that
the details had slipped my mind.
> The latter was necessitated by the LWT path. I wanted a cap on it and
> for the cap to be consistent for both ingress and LSP. To that end I
> went with a maximum of 30 labels in the kernel: 4k max allocation = ~30
> labels per nexthop with ~30 nexthops. For both 30 is excessive, overkill
> number. (though someone did ask me recently why not 512 labels. seriously)
>
> I can't say it makes sense for iproute2 to support 30 labels.
> Argumentative that even 16 is too high, but some folks have argued for it.
>
>
>> Dave is there a practical reason that is motivating increasing the size
>> in iproute? Or is the desire to ensure that iproute can take full
>> advantage of the kernel?
>
> I suspect only routing daemons would inject a high label stack. It would
> be nice for iproute2 to 1. be able to print that route properly
> (currently does not if the label count exceeds what it can handle), 2.
> be able to reinject the route. Even with scripting creating a route
> using ip with a lot of labels is a PITA.
Yes. At this point I will agree with Stephen Hemminger. The sensible
change to iproute is to rework the code so that it supports an arbitrary
number of labels. At least up to iproutes fixed sized rtnetlink packet
buffers.
It is a bit more work but then iproute won't be something that needs
worrying about any more. It will just work with whatever size addresses
are thrown at it.
Eric
prev parent reply other threads:[~2017-05-01 22:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-30 3:48 [PATCH net-next iproute2] ip: increase number of MPLS labels David Ahern
2017-04-30 6:04 ` Stephen Hemminger
2017-04-30 23:42 ` David Ahern
2017-05-01 16:15 ` Stephen Hemminger
2017-05-01 21:03 ` Eric W. Biederman
2017-05-01 21:22 ` David Ahern
2017-05-01 21:57 ` Eric W. Biederman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8737comea7.fsf@xmission.com \
--to=ebiederm@xmission.com \
--cc=dsa@cumulusnetworks.com \
--cc=netdev@vger.kernel.org \
--cc=roopa@cumulusnetworks.com \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.