diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-30 12:41:42 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-30 15:55:47 -0500 |
commit | ed3af5fd08ebe3b39cdd37ec2a473ef98e05ce39 (patch) | |
tree | 205f0f0c15867d3dda3cb1e5f40f26926842a726 /drivers/net/dsa/b53/b53_priv.h | |
parent | net: dsa: b53: Add mirror capture register definitions (diff) | |
download | linux-dev-ed3af5fd08ebe3b39cdd37ec2a473ef98e05ce39.tar.xz linux-dev-ed3af5fd08ebe3b39cdd37ec2a473ef98e05ce39.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/dsa/b53/b53_priv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/dsa/b53/b53_priv.h b/drivers/net/dsa/b53/b53_priv.h index 9d87889728ac..a9dc90a01438 100644 --- a/drivers/net/dsa/b53/b53_priv.h +++ b/drivers/net/dsa/b53/b53_priv.h @@ -407,5 +407,9 @@ int b53_fdb_del(struct dsa_switch *ds, int port, int b53_fdb_dump(struct dsa_switch *ds, int port, struct switchdev_obj_port_fdb *fdb, int (*cb)(struct switchdev_obj *obj)); +int b53_mirror_add(struct dsa_switch *ds, int port, + struct dsa_mall_mirror_tc_entry *mirror, bool ingress); +void b53_mirror_del(struct dsa_switch *ds, int port, + struct dsa_mall_mirror_tc_entry *mirror); #endif |