Closed airend closed 8 years ago
Which version of kernel package are you using? ...and, does ethernet work or not? ...and, are you using eth0 in a bridge?
This was linux-image-bcm2836
(4.4.3+-1457058983), but every version of 4.4.x had these errors on RPi 2. Otherwise, ignoring the flood of kernel messages, network seems to work OK, although I didn't look at performance or lost packets.
P.S. With the latest 4.4.3, load averages are better than with earlier 4.4.x, pretty much in line with K4.1 now.
P.P.S. Yes, I've been using eth0 bridged to wlan0 (4addr) for more than a year (no issues on 3.18/4.1).
Again, are you using a bridge? Seems that there are issues for kernels > 4.1 Btw, you can disable hw checksum for rx and/or tx by ethtool
Thanks, I think I edited my post just after you edited yours ;-) I will try disabling hw checksums. Are bridging issues specific to RPi 2 on > 4.1? OpenWrt uses the same bridged/WDS/4addr setup on K3.3 without issues.
Don't know. All I found was one thread reporting same issues on RPi2.
@mkreisl, looks like K4.5 includes a probable fix: https://github.com/torvalds/linux/commit/9b368814b336b0a1a479135eb2815edbc00efd3c. It uses the skb_postpush_rcsum()
helper in https://github.com/torvalds/linux/commit/f8ffad69c9f8b8dfb0b633425d4ef4d2493ba61a (also just added in 4.5/stable). Do you mind cherry-picking these for staging?
@airend I applied these two commits (and a required third one) (picked them from the current 4.5 branch) and build a new kernel package for RPi2. You can download/install the package from the devel repository.
Please test it and report if it works (or not)
Thank you! I installed kernel 1458666730
and the csum errors are gone (setup unchanged otherwise). May I ask what the third patch was?
From fdc5432a7b44ab7de17141beec19d946b9344e91 Mon Sep 17 00:00:00 2001
From: Daniel Borkmann <daniel@iogearbox.net>
Date: Thu, 7 Jan 2016 15:50:22 +0100
Subject: [PATCH] net, sched: add skb_at_tc_ingress helper
Add a skb_at_tc_ingress() as this will be needed elsewhere as well and
can hide the ugly ifdef.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Funny thing is, I'm using kernel 4.4.6 at my Cubieboard2 with eth0 and wlan0 in bridge mode (hostaod) but never seen those strange messages
I'm using something very similar: bridged wlan0 in 4addr mode, except managed by wpa_supplicant. I wonder if hostapd sets thing up differently; I definitely had major issues configuring as bridged client before the 2.4 supplicant, whereas hostapd always worked properly.
never had success with 4addr mode - tried to build a wlan-eth bridge some years ago. Now I have it running using the legacy 8192cu driver for years :smile:
It's definitely working with the bridging changes in 2.4 and addif
only after 4addr
is on (pre-up
/post-up
commands). I've come to depend on this 5 GHz Wi-Fi bridge, which works better than anything else tried, short of real wire that is ;-)
could you please post your configuration here, being still very interested on get it work. Thanks
Here's what I've been using for the past year or so:
#auto eth0
allow-hotplug eth0
iface eth0 inet manual
#auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
pre-up iw dev wlan0 set 4addr on
post-up brctl addif wds wlan0
pre-down brctl delif wds wlan0
wpa-bridge wds
wpa-driver nl80211
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto wds
iface wds inet static
address 192.168.3.107
netmask 255.255.255.0
gateway 192.168.3.7
dns-nameservers 192.168.3.7 192.168.3.3
bridge_ports eth0
bridge_pathcost eth0 100
bridge_ageing 0
bridge_maxwait 5
bridge_fd 2
Running latest 4.4.3 kernel, and getting weird Ethernet errors every few seconds. No issues with the regular K4.1.