All of lore.kernel.org
 help / color / mirror / Atom feed
From: gypsy <gypsy@iswest.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Limited quantity of filters.
Date: Tue, 07 Feb 2006 04:25:28 +0000	[thread overview]
Message-ID: <43E82138.4598B673@iswest.com> (raw)
In-Reply-To: <43E7AF44.3060407@tlen.pl>

Konrad wrote:
> 
> $TC filter add dev imq0 parent 1:0 prio 5 protocol ip u32
> $TC filter add dev imq0 parent 1:0 prio 5 handle 2: protocol ip u32
> divisor 256
> for ((j=0; j<=7; j++))
> do
>     for ((i=0; i<%5; i++))
>     do
>     q=`printf "%x\n" $i`
>     $TC filter add dev imq0 protocol ip parent 1:0 u32 ht 2:$q: match ip
> src 10.0.$j.$i flowid 1:10
>     echo "$q 10.0.${j}.$i"
>     done
> done
> $TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 ht 800:: match
> ip src 10.0.0.0/16 hashkey mask 0x000000ff at 12 link 2:
> echo "Another filter"
> $TC filter add dev imq0 protocol ip parent 1:0 prio 4 u32 match ip src
> 10.0.0.1 flowid 1:10
> # (1:10 is the example, in reality this filters will send packets to
> different classes)
> 
> This short script create filters. This script can create only about 1789
> filters. After that we have this:

Konrad,

Specify a prio in each 'filter add' line.  The SAME prio for each
filter.  Not specifying any filter won't work, but with a prio you can
load at least 64K filter lines.  Search this mailing list for "please
document" in July 2004.
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  reply	other threads:[~2006-02-07  4:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-06 20:19 [LARTC] Limited quantity of filters Konrad
2006-02-07  4:25 ` gypsy [this message]
2006-02-07 12:47 ` Konrad
2006-02-08  6:13 ` gypsy

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=43E82138.4598B673@iswest.com \
    --to=gypsy@iswest.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 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.