Re: [PATCH] dsa: vsc73xx: add support for vlan filtering

From: Linus Walleij
Date: Tue Jan 26 2021 - 01:20:58 EST


On Mon, Jan 25, 2021 at 12:45 AM Vladimir Oltean <olteanv@xxxxxxxxx> wrote:

> Anyhow, you did not approve or disprove the tag_8021q idea.

I just don't understand it well enough so I didn't know what to
say about that...

> With VLAN trunking on the CPU port, how would per-port traffic be
> managed? Would it be compatible with hardware-accelerated bridging
> (which this driver still does not support)?

I think in vendor code it is done like it is done on the RTL8366RB:
one VLAN per port, so the filtering inside the switch isolate the ports
by assigning them one VLAN each and the PTAG of the packets
make sure they can only reach the desired port.

(+/- my half-assed knowledge of how VLAN actually works, one
day I think I understand it, next day I don't understand it anymore)

Yours,
Linus Walleij