]> 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)
commit77a864c932f4176d28a72b17c93ccdfd22f2ce72
tree5b5a079cda1506a1aa96dbab6bc30336519d93ea
parent43614b99a4a1861d123888d5008f64fb6269b229
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