mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [net-next PATCH 0/2] Add mirror and LAG support to qca8k
@ 2021-11-23  2:59 Ansuel Smith
  2021-11-23  2:59 ` [net-next PATCH 1/2] net: dsa: qca8k: add support for mirror mode Ansuel Smith
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ansuel Smith @ 2021-11-23  2:59 UTC (permalink / raw)
  To: Andrew Lunn, Vivien Didelot, Florian Fainelli, Vladimir Oltean,
	David S. Miller, Jakub Kicinski, Russell King, netdev,
	linux-kernel
  Cc: Ansuel Smith

With the continue of adding 'Multiple feature to qca8k'

The switch supports mirror mode and LAG.
In mirror mode a port is set as mirror and other port are configured
to both igress or egress mode. With no port configured for mirror,
the mirror port is disabled and reverted to normal port.

The switch supports max 4 LAG with 4 different member max.
Current supported mode is Hash mode in both L2 or L2+3 mode.
There is a problematic implementation for the hash mode where
with multiple LAG configured, someone has to remove them to
change the hash mode as it's global.
When a member of the LAG is disconnected, the traffic is redirected
to the other port.

Some warning are present from checkpatch but can't really be fixed
as it would result in making the regs less readable.
(They really did their best with the LAG reg logic and complexity)

Ansuel Smith (2):
  net: dsa: qca8k: add support for mirror mode
  net: dsa: qca8k: add LAG support

 drivers/net/dsa/qca8k.c | 272 ++++++++++++++++++++++++++++++++++++++++
 drivers/net/dsa/qca8k.h |  37 ++++++
 2 files changed, 309 insertions(+)

-- 
2.32.0


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

end of thread, other threads:[~2021-11-23 15:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23  2:59 [net-next PATCH 0/2] Add mirror and LAG support to qca8k Ansuel Smith
2021-11-23  2:59 ` [net-next PATCH 1/2] net: dsa: qca8k: add support for mirror mode Ansuel Smith
2021-11-23  2:59 ` [net-next PATCH 2/2] net: dsa: qca8k: add LAG support Ansuel Smith
2021-11-23 15:33   ` kernel test robot
2021-11-23 12:20 ` [net-next PATCH 0/2] Add mirror and LAG support to qca8k patchwork-bot+netdevbpf

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

all inboxes | Powered by JetHome®