All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Divisor
@ 2006-02-08  0:36 Konrad
  2006-02-08  5:30 ` Devanshu Mehta
  0 siblings, 1 reply; 2+ messages in thread
From: Konrad @ 2006-02-08  0:36 UTC (permalink / raw)
  To: lartc

What is the difference between lines below?

$TC filter add dev imq0 parent 1:0 prio 5 handle 1: protocol ip u32 
divisor 1
$TC filter add dev imq0 parent 1:0 prio 5 handle 2: protocol ip u32 
divisor 256

What divisor is doing?

And the last problem...

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

Why after ht should be 800?
When 801:: is correct value? When this value should be different.

Please help me understand this.

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

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

* Re: [LARTC] Divisor
  2006-02-08  0:36 [LARTC] Divisor Konrad
@ 2006-02-08  5:30 ` Devanshu Mehta
  0 siblings, 0 replies; 2+ messages in thread
From: Devanshu Mehta @ 2006-02-08  5:30 UTC (permalink / raw)
  To: lartc

Not sure about the divisor; but your number 800 can be any hexadecimal 
number (within reason). This value is the name of the hash table, so 
each hash table should have it's own name (i.e. 800::, 801::, etc.)

Someone can correct me if I am wrong, because I don't have a lot of 
experience with HTs.
Devanshu

Konrad wrote:
> What is the difference between lines below?
>
> $TC filter add dev imq0 parent 1:0 prio 5 handle 1: protocol ip u32 
> divisor 1
> $TC filter add dev imq0 parent 1:0 prio 5 handle 2: protocol ip u32 
> divisor 256
>
> What divisor is doing?
>
> And the last problem...
>
> $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:
>
> Why after ht should be 800?
> When 801:: is correct value? When this value should be different.
>
> Please help me understand this.
>
> -- 
> Konrad aka Lenthir
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>


-- 
Devanshu Mehta
Advanced Networks and Applications Group
MIT Lincoln Laboratory

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

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-08  0:36 [LARTC] Divisor Konrad
2006-02-08  5:30 ` Devanshu Mehta

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.