public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* Isolating DSA Slave Interfaces on a Bridge with Bridge Offloading
@ 2022-03-13 11:23 Arınç ÜNAL
  2022-03-13 13:32 ` Vladimir Oltean
  0 siblings, 1 reply; 5+ messages in thread
From: Arınç ÜNAL @ 2022-03-13 11:23 UTC (permalink / raw)
  To: Jakub Kicinski, Florian Fainelli, Vladimir Oltean,
	Alvin Šipraga, Linus Walleij, Andrew Lunn,
	Luiz Angelo Daros de Luca, DENG Qingfang, erkin.bozoglu
  Cc: netdev@vger.kernel.org

Hi all,

The company I work with has got a product with a Mediatek MT7530 switch. 
They want to offer isolation for the switch ports on a bridge. I have 
run a test on a slightly modified 5.17-rc1 kernel. These commands below 
should prevent communication between the two interfaces:

bridge link set dev sw0p4 isolated on

bridge link set dev sw0p3 isolated on

However, computers connected to each of these ports can still 
communicate with each other. Bridge TX forwarding offload is implemented 
on the MT7530 DSA driver.

What I understand is isolation works on the software and because of the 
bridge offloading feature, the frames never reach the CPU where we can 
block it.

Two solutions I can think of:

- Disable bridge offloading when isolation is enabled on a DSA slave 
interface. Not the best solution but seems easy to implement.

- When isolation is enabled on a DSA slave interface, do not mirror the 
related FDB entries to the switch hardware so we can keep the bridge 
offloading feature for other ports.

I suppose this could only be achieved on switch specific DSA drivers so 
the implementation would differ by each driver.

Cheers.
Arınç

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

end of thread, other threads:[~2022-04-10 13:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-13 11:23 Isolating DSA Slave Interfaces on a Bridge with Bridge Offloading Arınç ÜNAL
2022-03-13 13:32 ` Vladimir Oltean
2022-03-14 13:13   ` Arınç ÜNAL
2022-03-14 14:00     ` Vladimir Oltean
2022-04-10 13:00       ` Arınç ÜNAL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox