Is there a way setup vlan for eth1(left SFP port) for BPI-R3

Tried to set up gpon stick for bpi-r3 which required me set eth1 with vlan 41, however, it just won’t work. I read frank-w’s website it says eth1 doesn’t support vlan in linux 6.1. Is there any other way to use eth1 with vlan? Or will it be fixed in linux 6.6 as snapshot start to use linux 6.6 for testing now.

And the sfp port with mt7531 is working fine, but i need sfp1 to connect my 2.5gbe switch.

Which system (image,kernel) do you use? Afair i ported a fix and it should be upstreamed in 6.1. sfp2 (port5 of switch,lan4) was afair working so you could use this…just make sure it is not in lanbr

Seems vlan fix was not backported to 6.1

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/net/ethernet/mediatek/mtk_eth_soc.c?h=linux-6.6.y&id=c6d96df9fa2c1d19525239d4262889cce594ce6c

Using openwrt SNAPSHOT r25591-362f9c41a4 which is based on 6.1.82.

That’s too bad, my ISP also provides IPTV which also using vlan tagging therefore I have to bridge it with LAN port together in order to use IPTV. So it seems I have to stick with sfp1 at this moment. Thanks for your information.

You could try backport the patch yourself,seems i miss it into my tree too

Maybe disabling in hardware helps:

Just commenting it out

Have you tested it?

Felix’ patch has fixed tag for later commit where he made vlan offload configurable by ethtool, but the breaking code was there before.

Maybe we can send a patch fixing 6.1 too…just confirm disabling this line works.if not we have to dig further.

Sorry, I am not at home during workday, I will test it as soon as I get home. :sweat_smile:

Have you checked it on weekend?