]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'qca8k-mirror-and-lag-support'
authorDavid S. Miller <davem@davemloft.net>
Tue, 23 Nov 2021 11:53:16 +0000 (11:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Nov 2021 11:53:16 +0000 (11:53 +0000)
commit3fe9710b4ac7792745c581b9c2cb560508b212c6
tree9dde3c48f8c95c2d52f3f2aad42a7e3815c0917d
parent259458ff14cc6cc7c2a6ccd7f88dd57603d05402
parenta28ca26aac63f0a4242c167488470d11caf823cf
Merge branch 'qca8k-mirror-and-lag-support'

Ansuel Smith says:

====================
Add mirror and LAG support to qca8k

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)
====================

Signed-off-by: David S. Miller <davem@davemloft.net>