[OpenWrt-Devel] [PATCH v2] gemini: Bring up DSA switches

Linus Walleij linus.walleij at linaro.org
Fri Jul 19 03:50:52 EDT 2019

On Fri, Jul 19, 2019 at 6:49 AM Paweł Dembicki <paweldembicki at gmail.com> wrote:

> I think, that the best approach is vlan filtering. I started some work:
> https://github.com/CHKDSK88/linux/commit/38b62482d9f828b5720db11145fa474e368b248c

Hey! I wanted to do that but never had time,
 so very happy that you're fixing it up! :)

> At this moment it works (I used ip-full and ip-bridge packets). But I
> have no idea how to integrate dsa vlan filtering with OpenWRT
> configuration.
> This is first dsa switch with DSA_TAG_PROTO_NONE in OpenWRT.

I think in the upstream kernel look at
commit f9bbe4477c30ece44296437ee26142b42ef8070b
"net: dsa: Optional VLAN-based port separation for switches without tagging"
by Vladimir Oltean.

I intuitively think this is what we want to do in the end is use
DSA_TAG_PROTO_8021Q but admittedly I don't think I
understand VLANs well enough for enabling this.

For OpenWrt using kernel v4.19 I have no idea what the best would
be. I don't think Vladimir's work can be easily backported.
I suppose some special hack to just bring up the DSA with
a custom script is the best compromise for the time being.

FYI this board supported by OpenWrt also has this switch:
with a custom driver:
It's a MIPS device though, and I don't know if anyone is
actively maintaining it and could test to migrate it to this
new driver and help out?

Linus Walleij

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list