tc filter add dev eth1 parent 1:0 prio 10 handle 3: protocol ip u32 divisor 256

tc filter add dev eth1 protocol ip parent 1:0 prio 10 u32 ht 800:: match ip src
10.2.0.0/16 hashkey mask 0x0000ff00 at 12 link 3:

So I have something like this.  the first command is saying handle 3 does this mean
it is createing a hash table because of an divisor?  and the link command on the
second command would only referecne to a HT?

Yes. An you must fill hashes 3:xx with other filters or just flowid. Something like this:

tc filter add dev eth1 parent 1:0 protocol ip u32 ht 3:04: order 1 \
        match ip dst 1.2.3.4/24 flowid 1:4

or

tc filter add dev eth1 parent 1:0 protocol ip u32 ht 3:04: order 1 \
        flowid 1:4



Catalin BOIE ([EMAIL PROTECTED]) wrote:

Is there a relation between the hashtable ID /(parent,handle)  so that if I used 2:
for a hash table I could or couldn't use 2: for a (parent,handle)ID?
No relation. You can use the same id for both.

I also noticed that you type the hashtables like 2:2:  can you have more levels with
this?  like 2:2:2:1: ?  and I guess the same question with the parent/handles.
No, you cannot do this.
For hashes check my previous mail, for handler: xxxxyyyy, where xxxx is
qdisc id and yyyy is class id.


thanks again.

--
When dealing with a slow pipe, never underestimate the throughput of the postal
system.


_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


--- Catalin(ux aka Dino) BOIE catab at deuroconsult.ro http://kernel.umbrella.ro/


-- When dealing with a slow pipe, never underestimate the throughput of the postal system.



--- Catalin(ux aka Dino) BOIE catab at deuroconsult.ro http://kernel.umbrella.ro/ _______________________________________________ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to