Modify

Opened 2 years ago

Last modified 21 months ago

#21374 new defect

u32 filter in qos-scripts

Reported by: lior.galanti@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: qos-scripts u32 Cc:

Description

line 343 in /usr/lib/qos/generate.sh

tc filter add dev $device parent ffff: protocol ip prio 1 u32 match u32 0 0 flowid 1:1 action connmark action mirred egress redirect dev ifb$ifbdev" "$N"

generating:

tc filter add dev eth0 parent ffff: protocol ip prio 1 u32 match u32 0 0 flowid 1:1 action connmark action mirred egress redirect dev ifb0

seems to make the kernel unhappy:

RTNETLINK answers: Invalid argument
We have an error talking to the kernel

restarting qos-scripts sometimes makes the entire device very responsive with elevated cpu usage by the kernel.

Attachments (1)

iproute2.diff (7.8 KB) - added by nyt 2 years ago.
patch for iproute2 4.3

Download all attachments as: .zip

Change History (4)

comment:1 follow-up: Changed 2 years ago by nyt

This is likely an issue with connmark support in tc and kernel 4.x. @nbd added a patch for that in iproute2, and the latest trunk is using iproute2-4.0.0. iproute2-4.3.0 has mainlined his patch. Along with a few other changes, I have it compiled and working. Testing one more thing then will post the diff.

Changed 2 years ago by nyt

patch for iproute2 4.3

comment:2 Changed 21 months ago by ayaka

I meet the same problem with the following code in Chaos Calmer, r49363

tc filter add dev br-lan parent ffff: protocol ip prio 1 u32 match ip dst 192.168.20.0/24 flowid 1:10 action mirred egress redirect dev ifb0

I wish the patches above would solve this problem.

comment:3 in reply to: ↑ 1 Changed 21 months ago by ayaka

Replying to nyt:

This is likely an issue with connmark support in tc and kernel 4.x. @nbd added a patch for that in iproute2, and the latest trunk is using iproute2-4.0.0. iproute2-4.3.0 has mainlined his patch. Along with a few other changes, I have it compiled and working. Testing one more thing then will post the diff.

I have tested the iproute2-4.3.0 with kernel 3.18.29-1-e22c608ccf582cf9f6887d328d9bd4c2, it won't works.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.