net: dsa: add port_vlan_dump routine
[cascardo/linux.git] / include / net / dsa.h
index 26a0e86..ebc0d9e 100644 (file)
@@ -297,9 +297,8 @@ struct dsa_switch_driver {
         * Bridge integration
         */
        int     (*port_join_bridge)(struct dsa_switch *ds, int port,
-                                   u32 br_port_mask);
-       int     (*port_leave_bridge)(struct dsa_switch *ds, int port,
-                                    u32 br_port_mask);
+                                   struct net_device *bridge);
+       int     (*port_leave_bridge)(struct dsa_switch *ds, int port);
        int     (*port_stp_update)(struct dsa_switch *ds, int port,
                                   u8 state);
 
@@ -314,6 +313,9 @@ struct dsa_switch_driver {
                                 struct switchdev_trans *trans);
        int     (*port_vlan_del)(struct dsa_switch *ds, int port,
                                 const struct switchdev_obj_port_vlan *vlan);
+       int     (*port_vlan_dump)(struct dsa_switch *ds, int port,
+                                 struct switchdev_obj_port_vlan *vlan,
+                                 int (*cb)(struct switchdev_obj *obj));
        int     (*port_pvid_get)(struct dsa_switch *ds, int port, u16 *pvid);
        int     (*vlan_getnext)(struct dsa_switch *ds, u16 *vid,
                                unsigned long *ports, unsigned long *untagged);