From: Robert Olsson <Robert.Olsson@data.slu.se>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@oss.sgi.com, robert.olsson@data.slu.se
Subject: Move fib_alias out of fib_hash.c
Date: Wed, 29 Sep 2004 17:20:45 +0200 [thread overview]
Message-ID: <16730.53965.503605.943263@robur.slu.se> (raw)
In-Reply-To: <20040928214722.11aef8e0.davem@davemloft.net>
David S. Miller writes:
>
> Ok, this begins the movement of fib_alias object handling
> out of fib_hash.c The idea is to make fib_hash.c purely
> a longest-matching-prefix lookup implementation.
>
> Look at fn_hash_lookup() after these changes, and you'll
> get an idea of how I want the whole fib_hash.c file to look
> in the end.
Exactly,
we can interface new lookups cleanly. For a trie something like:
static int
fn_trie_lookup(struct fib_table *tb, const struct flowi *flp, struct fib_result *res)
{
struct trie *t = (struct trie *) tb->tb_data;
struct list_head *fah=NULL;
int err=1, plen, r;
r = trie_pfx_get(t, flp->fl4_dst, &fah, &plen);
if (r && fah)
err = fib_semantic_match(fah,
flp, res,
plen);
return err;
}
Cheers.
--ro
next prev parent reply other threads:[~2004-09-29 15:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-29 4:47 Move fib_alias out of fib_hash.c David S. Miller
2004-09-29 15:20 ` Robert Olsson [this message]
2004-09-29 19:53 ` David S. Miller
2004-09-29 21:20 ` Steven Blake
2004-09-29 21:27 ` David S. Miller
2004-09-29 22:09 ` Andi Kleen
2004-09-29 22:24 ` Ben Greear
2004-09-30 8:08 ` Andi Kleen
2004-09-30 15:51 ` Ben Greear
2004-09-29 21:43 ` Robert Olsson
2004-09-29 21:30 ` Robert Olsson
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=16730.53965.503605.943263@robur.slu.se \
--to=robert.olsson@data.slu.se \
--cc=davem@davemloft.net \
--cc=netdev@oss.sgi.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).