]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: add support for mirror mode
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 23 Nov 2021 02:59:10 +0000 (03:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Nov 2021 11:53:16 +0000 (11:53 +0000)
commit1b2f4ef2f9fa774114eae577d5028c234acb774c
tree5b5a079cda1506a1aa96dbab6bc30336519d93ea
parent259458ff14cc6cc7c2a6ccd7f88dd57603d05402
net: dsa: qca8k: add support for mirror mode

The switch supports mirror mode. Only one port can set as mirror port and
every other port can set to both ingress and egress mode. The mirror
port is disabled and reverted to normal operation once every port is
removed from sending packet to it.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h