netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Octavian Purdila <opurdila@ixiacom.com>
To: Stephen Hemminger <shemminger@vyatta.com>
Cc: netdev@vger.kernel.org,
	Lucian Adrian Grijincu <lucian.grijincu@gmail.com>,
	Vlad Dogaru <ddvlad@rosedu.org>
Subject: Re: [PATCH] iproute2: add dynamic index and name hashes
Date: Fri, 10 Dec 2010 19:35:48 +0200	[thread overview]
Message-ID: <201012101935.49001.opurdila@ixiacom.com> (raw)
In-Reply-To: <20101210082040.230a2832@nehalam>

> >  };
> > 
> > -static struct idxmap *idxmap[16];
> 
> This is user space, and memory space is realtively cheap. Why not just
> make initial idxmap much bigger and be done with it.

Well, we can use up to 128K interfaces and hard coding it for that number 
seems obscene to me :) But I guess a default like 16K is OK.

The patch also adds a name hash, is that part OK?

Thanks,
tavi

      reply	other threads:[~2010-12-10 17:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-10 14:59 [PATCH] iproute2: add dynamic index and name hashes Octavian Purdila
2010-12-10 16:09 ` Daniel Baluta
2010-12-10 16:20 ` Stephen Hemminger
2010-12-10 17:35   ` Octavian Purdila [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=201012101935.49001.opurdila@ixiacom.com \
    --to=opurdila@ixiacom.com \
    --cc=ddvlad@rosedu.org \
    --cc=lucian.grijincu@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@vyatta.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).