* Multiple filters having same filter id ???
@ 2015-08-03 13:46 Akshat Kakkar
2015-08-06 7:40 ` Akshat Kakkar
2015-08-06 11:35 ` Andy Furniss
0 siblings, 2 replies; 3+ messages in thread
From: Akshat Kakkar @ 2015-08-03 13:46 UTC (permalink / raw)
To: lartc
I executed simply following 3 commands
tc qdsic add dev eth0 root handle 1: htb
tc filter add dev dev eth0 protocol ip parent 1:0 prio 10 handle ::1
u32 ht 800:0 match ip src 192.168.1.1
tc filter add dev dev eth0 protocol ip parent 1:0 prio 10 handle ::1
u32 ht 800:0 match ip src 192.168.1.2
Clearly, second filter is being inserted in the same location (i.e.
same filter id 800:0:1) as the first filter. There was no error
generated and infact when I listed the filters, using
tc filter show dev eth0
both the filters are listed!!
Is this a bug or a feature which I am unware of or something else?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Multiple filters having same filter id ???
2015-08-03 13:46 Multiple filters having same filter id ??? Akshat Kakkar
@ 2015-08-06 7:40 ` Akshat Kakkar
2015-08-06 11:35 ` Andy Furniss
1 sibling, 0 replies; 3+ messages in thread
From: Akshat Kakkar @ 2015-08-06 7:40 UTC (permalink / raw)
To: lartc
Its quite lonely out here. Please help !
On Mon, Aug 3, 2015 at 7:04 PM, Akshat Kakkar <akshat.1984@gmail.com> wrote:
> I executed simply following 3 commands
>
>
>
> tc qdsic add dev eth0 root handle 1: htb
>
> tc filter add dev dev eth0 protocol ip parent 1:0 prio 10 handle ::1
> u32 ht 800:0 match ip src 192.168.1.1
>
> tc filter add dev dev eth0 protocol ip parent 1:0 prio 10 handle ::1
> u32 ht 800:0 match ip src 192.168.1.2
>
>
>
> Clearly, second filter is being inserted in the same location (i.e.
> same filter id 800:0:1) as the first filter. There was no error
> generated and infact when I listed the filters, using
>
> tc filter show dev eth0
>
> both the filters are listed!!
>
> Is this a bug or a feature which I am unware of or something else?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Multiple filters having same filter id ???
2015-08-03 13:46 Multiple filters having same filter id ??? Akshat Kakkar
2015-08-06 7:40 ` Akshat Kakkar
@ 2015-08-06 11:35 ` Andy Furniss
1 sibling, 0 replies; 3+ messages in thread
From: Andy Furniss @ 2015-08-06 11:35 UTC (permalink / raw)
To: lartc
Akshat Kakkar wrote:
> Its quite lonely out here. Please help !
You are the one who is testing - if you think it's a bug make a test
case that should work that it breaks and post on netdev.
I never used hashing for real - maybe years ago I tested something that
seemed to work, but I have no deep knowledge.
Maybe it just doesn't matter - maybe it does - maybe it's a useful
feature (If you hash from many other filters and run out of handles then
it may or may not be handy if it "goes linear" and runs down the
clashing filters).
I am making all this up as I type - you can test.
> On Mon, Aug 3, 2015 at 7:04 PM, Akshat Kakkar <akshat.1984@gmail.com>
> wrote:
>> I executed simply following 3 commands
>>
>>
>>
>> tc qdsic add dev eth0 root handle 1: htb
>>
>> tc filter add dev dev eth0 protocol ip parent 1:0 prio 10 handle
>> ::1 u32 ht 800:0 match ip src 192.168.1.1
>>
>> tc filter add dev dev eth0 protocol ip parent 1:0 prio 10 handle
>> ::1 u32 ht 800:0 match ip src 192.168.1.2
>>
>>
>>
>> Clearly, second filter is being inserted in the same location
>> (i.e. same filter id 800:0:1) as the first filter. There was no
>> error generated and infact when I listed the filters, using
>>
>> tc filter show dev eth0
>>
>> both the filters are listed!!
>>
>> Is this a bug or a feature which I am unware of or something else?
> -- To unsubscribe from this list: send the line "unsubscribe lartc"
> in the body of a message to majordomo@vger.kernel.org More majordomo
> info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-06 11:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-03 13:46 Multiple filters having same filter id ??? Akshat Kakkar
2015-08-06 7:40 ` Akshat Kakkar
2015-08-06 11:35 ` Andy Furniss
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.