diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-07-27 13:35:20 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-29 07:24:39 +0200 |
commit | 742d37a84d3f7bb60d9b2d9ada9ad4e599f65ebf (patch) | |
tree | ba0ede0609dc777e62a5f716680667bcb3711375 /drivers/net/dsa/qca/qca8k.h | |
parent | net: dsa: qca8k: move port FDB/MDB function to common code (diff) | |
download | linux-742d37a84d3f7bb60d9b2d9ada9ad4e599f65ebf.tar.xz linux-742d37a84d3f7bb60d9b2d9ada9ad4e599f65ebf.zip |
net: dsa: qca8k: move port mirror functions to common code
The same port mirror functions are used by drivers based on qca8k family
switch. Move them to common code to make them accessible also by other
drivers.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/dsa/qca/qca8k.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca/qca8k.h b/drivers/net/dsa/qca/qca8k.h index 9da7928de83c..3a2131b7abfa 100644 --- a/drivers/net/dsa/qca/qca8k.h +++ b/drivers/net/dsa/qca/qca8k.h @@ -494,4 +494,11 @@ int qca8k_port_mdb_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db); +/* Common port mirror function */ +int qca8k_port_mirror_add(struct dsa_switch *ds, int port, + struct dsa_mall_mirror_tc_entry *mirror, + bool ingress, struct netlink_ext_ack *extack); +void qca8k_port_mirror_del(struct dsa_switch *ds, int port, + struct dsa_mall_mirror_tc_entry *mirror); + #endif /* __QCA8K_H */ |