netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
	"Md. Islam" <mislam4@kent.edu>
Cc: Netdev <netdev@vger.kernel.org>,
	David Miller <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>,
	makita.toshiaki@lab.ntt.co.jp, panda@hongo.wide.ad.jp,
	yasuhiro.ohara@ntt.com, john.fastabend@gmail.com,
	alexei.starovoitov@gmail.com
Subject: Re: [PATCH RFC net-next] net/fib: Poptrie based FIB lookup
Date: Mon, 27 Aug 2018 10:56:05 -0600	[thread overview]
Message-ID: <e091f84e-f6c6-24a7-9e45-bd941cceae8c@gmail.com> (raw)
In-Reply-To: <20180827092420.791bb1ad@shemminger-XPS-13-9360>

On 8/27/18 10:24 AM, Stephen Hemminger wrote:
> 
> Also, as Dave mentioned any implementation needs to handle multiple namespaces
> and routing tables.
> 
> Could this alternative lookup be enabled via sysctl at runtime rather than kernel config?
> 

I spent time a couple of years ago refactoring IPv4 fib lookups with the
intent of allowing different algorithms - for use cases like this:

https://github.com/dsahern/linux/commits/net/ipv4-fib-ops

(it is also another way to solve the API nightmare that ipv6 has become).

But the poptrie patches that have been sent so far have much bigger
problems that need to be addressed before anyone worries about how to
select poptrie vs lc-trie.

The patch does not handle errors (e.g., if attributes such as tos,
metric/priority and multipath are not allowed you need to fail the route
insert; further, what happens if someone creates > 255 netdevices?),
last patch has both fib tables populated (a no-go), does not handle
delete or dumps. In the current form, the poptrie algorithm can not be
taken for a test drive. My suggestion to make it a compile time
selection is just so people can actually try it out using current admin
tools.

  reply	other threads:[~2018-08-27 20:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-27  2:28 [PATCH RFC net-next] net/fib: Poptrie based FIB lookup Md. Islam
2018-08-27 16:24 ` Stephen Hemminger
2018-08-27 16:56   ` David Ahern [this message]
2018-08-27 23:03     ` Md. Islam
2018-08-27 22:29   ` Md. Islam

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=e091f84e-f6c6-24a7-9e45-bd941cceae8c@gmail.com \
    --to=dsahern@gmail.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=john.fastabend@gmail.com \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=makita.toshiaki@lab.ntt.co.jp \
    --cc=mislam4@kent.edu \
    --cc=netdev@vger.kernel.org \
    --cc=panda@hongo.wide.ad.jp \
    --cc=stephen@networkplumber.org \
    --cc=yasuhiro.ohara@ntt.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).