All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Limited quantity of filters.
@ 2006-02-06 20:19 Konrad
  2006-02-07  4:25 ` gypsy
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Konrad @ 2006-02-06 20:19 UTC (permalink / raw)
  To: lartc

$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:

(...)
f9 10.0.7.249
fa 10.0.7.250
fb 10.0.7.251
fc 10.0.7.252
fd 10.0.7.253
RTNETLINK answers: File exists
We have an error talking to the kernel
fe 10.0.7.254
RTNETLINK answers: File exists
We have an error talking to the kernel
ff 10.0.7.255
RTNETLINK answers: File exists
We have an error talking to the kernel
Another filter
RTNETLINK answers: File exists
We have an error talking to the kernel
amidala:~#

After this I can't create any more filters on this device. What should I
do when I have 10 subnets or more? I want to create more filters. Who
knows how?

Below this text we have next example... creating filters well, but it's
too slow!

for ((j=0; j<\x10; j++))
do
    for ((i=0; i<%5; i++))
    do
        $TC filter add dev imq0 protocol ip parent 1:0 prio 4 u32 match
ip src 10.0.$j.$i flowid 1:10
        echo "10.0.$j.$i"
    done
done

I need more powerful solution. Need some help... Any suggestions?

--
Konrad

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Limited quantity of filters.
  2006-02-06 20:19 [LARTC] Limited quantity of filters Konrad
@ 2006-02-07  4:25 ` gypsy
  2006-02-07 12:47 ` Konrad
  2006-02-08  6:13 ` gypsy
  2 siblings, 0 replies; 4+ messages in thread
From: gypsy @ 2006-02-07  4:25 UTC (permalink / raw)
  To: lartc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Limited quantity of filters.
  2006-02-06 20:19 [LARTC] Limited quantity of filters Konrad
  2006-02-07  4:25 ` gypsy
@ 2006-02-07 12:47 ` Konrad
  2006-02-08  6:13 ` gypsy
  2 siblings, 0 replies; 4+ messages in thread
From: Konrad @ 2006-02-07 12:47 UTC (permalink / raw)
  To: lartc

gypsy wrote:
> 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.
Thank You. It's working. I've found this message. I'm sorry, because
I've not used list's archive to find answer :/
Is it possible to use any search engine (like groups.google.com) to
searching only on this list?

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Limited quantity of filters.
  2006-02-06 20:19 [LARTC] Limited quantity of filters Konrad
  2006-02-07  4:25 ` gypsy
  2006-02-07 12:47 ` Konrad
@ 2006-02-08  6:13 ` gypsy
  2 siblings, 0 replies; 4+ messages in thread
From: gypsy @ 2006-02-08  6:13 UTC (permalink / raw)
  To: lartc

Konrad wrote:
> 
> gypsy wrote:
> > 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.
> Thank You. It's working. I've found this message. I'm sorry, because
> I've not used list's archive to find answer :/
> Is it possible to use any search engine (like groups.google.com) to
> searching only on this list?

google (no "groups.google", just "google.com") "LARTC keywords here"
works for me.  You could use the ADVANCED search, putting LARTC and
mailman.ds9a.nl into the ALL field, but I think you would still get hits
from other places also.

FWIW, free news server gmane carries LARTC as
gmane.linux.network.routing and my newsreader, although the search
phrasing syntax is a pain to deal with, returns the relevant articles. 
news.gmane.org
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-08  6:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-06 20:19 [LARTC] Limited quantity of filters Konrad
2006-02-07  4:25 ` gypsy
2006-02-07 12:47 ` Konrad
2006-02-08  6:13 ` gypsy

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.