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
bridger is not reliable (fails to register traffic) #3
Comments
r22967-f18cb0ba63 on freshly supported wr3000 still doesn't register some of the connection |
I can confirm I am seeing the same as well. I posted details here: Running on RT3200 build r24615-25e215c14e. However, I am no longer seeing WED crashing as noted here: |
This seems to solve the issue for me, but I'm not sure why it does: diff --git a/flow.c b/flow.c
index 61564c0..c7a599a 100644
--- a/flow.c
+++ b/flow.c
@@ -160,7 +160,6 @@ bridger_flow_update_cb(struct uloop_timeout *timeout)
avl_for_each_element_safe(&flows, flow, node, tmp) {
avl_delete(&sorted_flows, &flow->sort_node);
bridger_bpf_flow_update(flow);
- bridger_nl_flow_offload_update(flow);
avl_insert(&sorted_flows, &flow->sort_node);
flow_debug_msg(flow, "Update"); I do not know what's wrong with Lines 734 to 739 in 3159bbe
handle_filter() . I made handle_filter() a noop and there was no change, only not sending that RTM_GETTFILTER command to cmd_sock by not calling bridger_nl_flow_offload_update fixed it.
Of course, I'm sharing this is only in the hopes that it helps find the source of the issue; not for you to use the patch; though it does seem to work fine. |
Very interesting find! I rebuilt the firmware for my three RT3200s including the change you made in Update: I know @nbd168 has to be pulled in a million other directions, but hopefully he can give this a look and get some updates into |
It's weird that RTM_GETTFILTER causes this issue because as far as I know, it shouldn't cause any changes. I can even trigger the issue again with I think it could be kernel bug but not sure. |
I'm still seeing this issue with "OpenWrt SNAPSHOT r25136-6497cdba09" and "bridger 2023-05-12-d0f79a16", is there any update or ii is still better to keep WED disabled on a DumpAP? |
The WED crash issue seems to be fixed. See details toward the end of: openwrt/mt76#754 (comment) I'm using @rany2's patch from here and it has kept the WED offloading working for me. |
Thanks, |
Correct, at this point you'd have to build and patch yourself. |
Should improve performance/reliability with lots of mcast packets Signed-off-by: Felix Fietkau <nbd@nbd.name>
Just testing my bpi-r3 as a dumb AP and latest snapshot. I have also tested kernel 6.6 and bridger with the same result. I see that bridger does not get new flows after a minute or so... But now, I've been testing bridger by removing this line. #3 (comment) And I can see new flows again.
Thanks @rany2 👍 |
bridger is not reliable (fails to register traffic) Signed-off-by: Robert Senderek <robert.senderek@10g.pl>
bridger with rany2 patch for OpenWrt 23.05.3 on my gdrive |
how do we apply this patch? sorry, I am relatively new to openwrt. thanks for your help! |
@gssjshark Lets assume you're in OpenWrt folder
then build your package or whole firmware or You can install package for OpenWrt 23.05.3 from #3 (comment) |
@nbd168 Hey Felix, do you have any feedback around the findings from @rany2 in post #3 (comment)? |
Please try the latest version |
I'll test it out tomorrow, thanks as always for your efforts. Hopefully you could find a tester that can respond earlier. |
@nbd168 Updated my build to run with c77a7a1. So far, so good. After 50 minutes of uptime, I am still seeing flows when watching Thank you, @nbd168! |
I think this issue could be closed, seems solved for me. |
thanks for testing! |
After a while after starting
bridger
doesn't register new connections and file/sys/kernel/debug/ppe0/bind
stays empty for new/current traffic but after a while work again
/etc/init.d/bridger restart
fix this for current traffic instantlylink to forum thread where others confirm this
https://forum.openwrt.org/t/mt76-wireless-driver-debugging/154514/147?u=nicefile
build from 21-04-2023 @ cudy wr3000 mt7981
The text was updated successfully, but these errors were encountered: