net: dsa: b53: Add support for port mirroring
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 30 Jan 2017 20:41:42 +0000 (12:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 20:55:47 +0000 (15:55 -0500)
commited3af5fd08ebe3b39cdd37ec2a473ef98e05ce39
tree205f0f0c15867d3dda3cb1e5f40f26926842a726
parent151da0171e12607b987d9a028a046104358b7f0d
net: dsa: b53: Add support for port mirroring

Add support for configuring port mirroring through the cls_matchall
classifier. We do a full ingress or egress capture towards the capture
port. Future improvements could include leveraging the divider to allow
less frames to be captured, as well as matching specific MAC DA/SA.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/b53/b53_priv.h