diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-02-23 12:13:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-25 15:20:21 -0500 |
commit | ceff5eff3a4c690764d11f2d759c27a0d2dea732 (patch) | |
tree | 5655dcbd07f7c75645ba65a6b17fc65956a92fb8 /drivers/net/dsa/mv88e6xxx.h | |
parent | 65aebfc002abc1827ac7c8644a2bba0459ce3ce2 (diff) | |
download | talos-obmc-linux-ceff5eff3a4c690764d11f2d759c27a0d2dea732.tar.gz talos-obmc-linux-ceff5eff3a4c690764d11f2d759c27a0d2dea732.zip |
net: dsa: mv88e6xxx: implement port_vlan_dump
Remove the port_pvid_get and vlan_getnext functions in favor of a
simpler mv88e6xxx_port_vlan_dump function.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index 260b4918e427..6a30bda63a2f 100644 --- a/drivers/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h @@ -494,9 +494,9 @@ int mv88e6xxx_port_vlan_add(struct dsa_switch *ds, int port, struct switchdev_trans *trans); int mv88e6xxx_port_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan); -int mv88e6xxx_port_pvid_get(struct dsa_switch *ds, int port, u16 *vid); -int mv88e6xxx_vlan_getnext(struct dsa_switch *ds, u16 *vid, - unsigned long *ports, unsigned long *untagged); +int mv88e6xxx_port_vlan_dump(struct dsa_switch *ds, int port, + struct switchdev_obj_port_vlan *vlan, + int (*cb)(struct switchdev_obj *obj)); int mv88e6xxx_port_fdb_prepare(struct dsa_switch *ds, int port, const struct switchdev_obj_port_fdb *fdb, struct switchdev_trans *trans); |