-
-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to delete filter of clsact/ingress #928
Comments
Maybe this issue is interrelated? |
Thanks, working on it! |
The issue caused by incorrect tcm_info encoding. To mitigate the error, you can use right now: ipr.tc("del-filter", "bpf", iface_idx, ':1', protocol=0, prio=0xc000, parent='ffff:fff2') Corresponding code: pyroute2/pyroute2.core/pr2modules/netlink/rtnl/tcmsg/sched_bpf.py Lines 23 to 26 in 4e73961
Tomorrow I'm to fix this. And #745 as well. |
Looks like fixed: pyroute2/tests/test_linux/test_tc/test_bpf.py Lines 80 to 107 in 878bbc9
The next release which will include this fix is to be tagged tomorrow |
Reproduce steps:
First let's create the clsact qdisc and a bpf filter.
Then we can check the status:
However the consequent del-filter won't work:
will raise error
I guess it's caused by
tcm_info
in the request of RTM_DELTFILTER, somehow the parameter is set to 0x300 instead of 0, but I don't know how to make the correction.The text was updated successfully, but these errors were encountered: