net: dsa: add support for switchdev FDB objects
[firefly-linux-kernel-4.4.55.git] / include / net / dsa.h
index fbca63ba8f733fd37fa300bbbe33a300ab05fd49..091d35f77180d766ed8d6ce6a6b20473719dab69 100644 (file)
@@ -296,12 +296,16 @@ struct dsa_switch_driver {
                                     u32 br_port_mask);
        int     (*port_stp_update)(struct dsa_switch *ds, int port,
                                   u8 state);
-       int     (*fdb_add)(struct dsa_switch *ds, int port,
-                          const unsigned char *addr, u16 vid);
-       int     (*fdb_del)(struct dsa_switch *ds, int port,
-                          const unsigned char *addr, u16 vid);
-       int     (*fdb_getnext)(struct dsa_switch *ds, int port,
-                              unsigned char *addr, bool *is_static);
+
+       /*
+        * Forwarding database
+        */
+       int     (*port_fdb_add)(struct dsa_switch *ds, int port, u16 vid,
+                               const u8 addr[ETH_ALEN]);
+       int     (*port_fdb_del)(struct dsa_switch *ds, int port, u16 vid,
+                               const u8 addr[ETH_ALEN]);
+       int     (*port_fdb_getnext)(struct dsa_switch *ds, int port, u16 *vid,
+                                   u8 addr[ETH_ALEN], bool *is_static);
 };
 
 void register_switch_driver(struct dsa_switch_driver *type);