Development issues regarding the cerowrt test router project
 help / color / mirror / Atom feed
* Re: [Cerowrt-devel] Problem with queuing vlan tagged packets after migration from 3.16.0 to 4.9.0
       [not found]           ` <CAM_iQpU332Vrv5bZ10TYJ-crRUR0Y2yzgY41+eChs3hGJQzaoA@mail.gmail.com>
@ 2019-01-19 14:47             ` Dave Taht
  0 siblings, 0 replies; only message in thread
From: Dave Taht @ 2019-01-19 14:47 UTC (permalink / raw)
  To: cerowrt-devel


Perhaps this has been a source of some subtle bugs in sqm?

Cong Wang <xiyou.wangcong@gmail.com> writes:

> On Tue, Jan 1, 2019 at 11:46 AM Bartek Kois <bartek.kois@gmail.com> wrote:
>>
>> Hi
>> Yes it did work since I remember (like around 2.4.x) and it changed
>> since I moved from Debian 8 to 9. I would appreciate fixing that in the
>> future beacuse it is essential for queueing traffic on the routers, but
>> the question is why these filters don`t work in that case:
>>
>>      tc filter add dev $LAN_ETH parent 1:0 protocol ip prio 4 u32 match
>> u32 0x0a000c08 0xffffffff at 20 classid 1:2001      # for 10.0.12.8 ip
>> address
>>      tc filter add dev $LAN_ETH parent 1:0 protocol ip prio 4 u32 match
>> u32 0x0a000c09 0xffffffff at 20 classid 1:2002      # for 10.0.12.9 ip
>> address
>>      tc filter add dev $LAN_ETH parent 1:0 protocol ip prio 4 u32 match
>> u32 0x0a000c10 0xffffffff at 20 classid 1:2003      # for 10.0.12.10 ip
>> address
>>
>> I`ve changed "at 16" which works without vlan tags to "at 20" to take
>> vlan tag into account.
>
> Yeah, this confirms my speculation.
>
> The problem is essentially a design flaw of u32 filter, the IP header
> and TCP header offsets are never fixed, for example VLAN tagging and
> IP options. What's more, it is not easy for user-space to learn the offset
> for different packets as it requires to parse into each packets.
>
> I don't know whether we can fix this either, VLAN call path probably
> already makes assumptions on the current skb->data position, if
> we "fix" it for u32, it would probably break other things.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-19 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <9f72e7e8-34a5-7bdb-7719-c4a5d35e9fd8@gmail.com>
     [not found] ` <CAM_iQpUnXGM45=w6ts2DEDX3+eS46FDtG95CCy07R0Fa0pmcaw@mail.gmail.com>
     [not found]   ` <de2e92c4-3b4b-3b0a-2f5c-e91da15e08a3@gmail.com>
     [not found]     ` <a8cb8964-07b0-ef21-5565-9fe76ecf1f9c@gmail.com>
     [not found]       ` <CAM_iQpWbx5MweaA5bnsL6ZrC2DFsdEGZ4uXhQa1AxM+bR4qHuQ@mail.gmail.com>
     [not found]         ` <d9cbb909-6514-138f-74dc-bb82cdbaa4b9@gmail.com>
     [not found]           ` <CAM_iQpU332Vrv5bZ10TYJ-crRUR0Y2yzgY41+eChs3hGJQzaoA@mail.gmail.com>
2019-01-19 14:47             ` [Cerowrt-devel] Problem with queuing vlan tagged packets after migration from 3.16.0 to 4.9.0 Dave Taht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox