Re: Problems using bridges on a am3352 with 4.14 & 4.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# cat /sys/class/net/br0/bridge/default_pvid
1
# cat /sys/class/net/br0/bridge/vlan_filtering
0

So I tried:
# echo 3 > /sys/class/net/br0/bridge/default_pvid

# ip link set eth0 master br0
[3024323.822760] br0: port 1(eth0) entered blocking state
[3024323.828380] br0: port 1(eth0) entered disabled state
[3024323.835060] net eth0: Adding vlanid 3 to vlan filter

Coming from a 3.18 kernel am I just unaware of new features or does it
not work as expected?

Greetings,
   Falco Hyfing



On Wed, Oct 24, 2018 at 11:57 PM Grygorii Strashko
<grygorii.strashko@xxxxxx> wrote:
>
>
>
> On 10/24/18 3:02 AM, Yegor Yefremov wrote:
> > On Tue, Oct 23, 2018 at 3:31 PM Falco Hyfing <hyfinglists@xxxxxxxxx> wrote:
> >>
> >> Hi there,
> >>
> >> I do not get bridging to work. Both buildroot and OpenWrt with 4.9 &
> >> 4.14 fail somehow.
> >>
> >> Legacy:
> >> # brctl addbr br0
> >> # brctl addif br0 eth0
> >> [2869969.253272] br0: port 1(eth0) entered blocking state
> >> [2869969.258901] br0: port 1(eth0) entered disabled state
> >> [2869969.265663] cpsw 4a100000.ethernet eth0: failed to initialize
> >> vlan filtering on this port
> >> [2869969.399238] br0: port 1(eth0) entered blocking state
> >> [2869969.404667] br0: port 1(eth0) entered disabled state
> >> [2869969.411479] cpsw 4a100000.ethernet eth0: failed to initialize
> >> vlan filtering on this port
> >> can't add eth0 to bridge br0: Invalid argument
> >>
> >> Current method:
> >> # ip link add br0 type bridge
> >> # ip link set eth0 master br0
> >> [2870168.133408] br0: port 1(eth0) entered blocking state
> >> [2870168.139033] br0: port 1(eth0) entered disabled state
> >> [2870168.145795] cpsw 4a100000.ethernet eth0: failed to initialize
> >> vlan filtering on this port
> >> RTNETLINK answers: Invalid argument
> >>
> >> # uname -a
> >> Linux host 4.9.119 #0 SMP Mon Aug 13 06:36:18 2018 armv7l GNU/Linux
> >>
> >> This is a vanilla kernel on OpenWRT 18.06 .
> >>
> >> Do you have any suggestions or hints?
> >
> > Adding Ivan and Grygorii to the thread.
> >
> > The issue persists in at least 4.18.x too. The system in use is OnRISC
> > Baltos. Its DTS was long ago upstreamed [1], [2].
> >
> > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/am335x-baltos-ir5221.dts
> > [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/am335x-baltos.dtsi
>
> I assume those HW configured in dual_mac mode. Right?
> In dual_mac mode vid1 and vid2 are reserved, so if bridge is configured
> in vlan aware mode it will try to register default bridge vlan which is vid1
> and -- fail.
>
> Pls, check bridge properties:
> /sys/class/net/br0/bridge/default_pvid
> /sys/class/net/br0/bridge/vlan_filtering
>
>
> --
> regards,
> -grygorii



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux