net: dsa: sja1105: Add support for port mirroring
authorVladimir Oltean <olteanv@gmail.com>
Fri, 4 Oct 2019 00:33:47 +0000 (03:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 21:43:25 +0000 (14:43 -0700)
commit511e6ca047457bcf200d9b6ad75e310b0e77af19
treea2f94f8ce8ea5be80fdc4da47bfcbd03fa39fcc5
parent5a43f697cc105544fb85f3a0bbc8223ec50b28d0
net: dsa: sja1105: Add support for port mirroring

Amazingly, of all features, this does not require a switch reset.

Tested with:

tc qdisc add dev swp2 clsact
tc filter add dev swp2 ingress matchall skip_sw \
action mirred egress mirror dev swp3
tc filter show dev swp2 ingress
tc filter del dev swp2 ingress pref 49152

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c