linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] vlan-aware bridge breaks vlan on another port on same gmac
@ 2023-01-20 16:45 Frank Wunderlich
  2023-01-20 17:21 ` Vladimir Oltean
  0 siblings, 1 reply; 14+ messages in thread
From: Frank Wunderlich @ 2023-01-20 16:45 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, netdev, linux-kernel,
	Landen Chao, Sean Wang, DENG Qingfang
  Cc: Matthias Brugger, Daniel Golle

Hi,

noticed a bug while testing systemd, but it is reproducable with iproute2

tested on bananapi-r2 with kernel 5.15.80 and bananapi-r3 with kernel 6.2-rc1,
both use mt7530 dsa driver but different configs (mt7530 vs. mt7531).
have no other devices to test.

first create vlan on wan-port (wan and lan0 are dsa-user-ports on same gmac)

netif=wan
ip link set $netif up
ip link add link $netif name vlan110 type vlan id 110
ip link set vlan110 up
ip addr add 192.168.110.1/24 dev vlan110

vlan works now, other side pingable, vlan-tagged packets visible in tcpdump on both sides

now create the vlan-sware bridge (without vlan_filtering it works in my test)

BRIDGE=lanbr0
ip link add name ${BRIDGE} type bridge vlan_filtering 1 vlan_default_pvid 1
ip link set ${BRIDGE} up
ip link set lan0 master ${BRIDGE}
ip link set lan0 up

takes some time before it is applied and ping got lost

packets are received by other end but without vlan-tag

regards Frank


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-02-05 13:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-20 16:45 [BUG] vlan-aware bridge breaks vlan on another port on same gmac Frank Wunderlich
2023-01-20 17:21 ` Vladimir Oltean
2023-01-20 23:34   ` [PATCH] mt7530 don't make the CPU port a VLAN user port kernel test robot
2023-01-21 12:11   ` Aw: Re: [BUG] vlan-aware bridge breaks vlan on another port on same gmac Frank Wunderlich
2023-01-21 12:22     ` Vladimir Oltean
2023-01-21 12:32       ` Aw: " Frank Wunderlich
2023-01-21 13:35         ` Vladimir Oltean
2023-01-21 14:12           ` Aw: " Frank Wunderlich
2023-01-30 12:58             ` Vladimir Oltean
2023-01-31 16:23               ` Aw: " Frank Wunderlich
2023-02-05 13:48                 ` Frank Wunderlich
2023-02-05 13:59                   ` Vladimir Oltean
2023-01-21 14:35           ` Aw: " Frank Wunderlich
2023-01-30 13:01             ` Vladimir Oltean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).