Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Venkatesh. K" <venkatesh@cbayscribe.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] use 3rd octet as hashkey
Date: Tue, 25 Nov 2003 09:27:11 +0000	[thread overview]
Message-ID: <marc-lartc-106975307703144@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106964777500955@msgid-missing>

----- Original Message ----- 
From: "Martin Volf" <mv@inv.cz>
To: <lartc@mailman.ds9a.nl>
Sent: Monday, November 24, 2003 11:37 PM
Subject: Re: [LARTC] use 3rd octet as hashkey


> On Mon, 24 Nov 2003 09:52:30 +0530
> "Venkatesh. K" <venkatesh@cbayscribe.com> wrote:
>
> > Hi,
> >
> > I want to use 3rd octet in the ip address for creating hashng filters?
> >
> > How do I do it?
>
> Hi,
>
> what about this (two level hashing with the 3rd and the 4th octet):
>
>
> FILTER_ADD="/sbin/tc filter add dev imq0 parent 1:0 protocol ip"
>
> # 1st level - 3rd octet (mask 0x0000ff00)
> $FILTER_ADD handle 2: u32 divisor 256
> $FILTER_ADD u32 ht 800:: match ip dst 0/0 \
> hashkey mask 0x0000ff00 at 16 link 2:

I had thought about the above line. I have not been able understand
hashkey/mask of u32 filter fully as very little documentation is available.

I will try this out.

Thanks for the tip.

Venkatesh K

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2003-11-25  9:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-24  4:34 [LARTC] use 3rd octet as hashkey Venkatesh. K
2003-11-24 18:07 ` Martin Volf
2003-11-25  9:27 ` Venkatesh. K [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=marc-lartc-106975307703144@msgid-missing \
    --to=venkatesh@cbayscribe.com \
    --cc=lartc@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox