diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-09-21 01:32:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-22 00:24:01 +0200 |
commit | de40fc5d210f2c31f2c25a9b920861276a71b70d (patch) | |
tree | 085a2d7298d060e6eb28c2582a60f41170eceb77 /net/dsa/dsa_priv.h | |
parent | net: dsa: better scoping of slave functions (diff) | |
download | linux-de40fc5d210f2c31f2c25a9b920861276a71b70d.tar.xz linux-de40fc5d210f2c31f2c25a9b920861276a71b70d.zip |
net: dsa: add port fdb dump
Dumping a DSA port's FDB entries is not specific to a DSA slave, so add
a dsa_port_fdb_dump function, similarly to dsa_port_fdb_add and
dsa_port_fdb_del.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r-- | net/dsa/dsa_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index f616b3444418..9803952a5b40 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h @@ -128,6 +128,7 @@ int dsa_port_fdb_add(struct dsa_port *dp, const unsigned char *addr, u16 vid); int dsa_port_fdb_del(struct dsa_port *dp, const unsigned char *addr, u16 vid); +int dsa_port_fdb_dump(struct dsa_port *dp, dsa_fdb_dump_cb_t *cb, void *data); int dsa_port_mdb_add(struct dsa_port *dp, const struct switchdev_obj_port_mdb *mdb, struct switchdev_trans *trans); |