]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/net/dsa.h
VSOCK: define VSOCK_SS_LISTEN once only
[karo-tx-linux.git] / include / net / dsa.h
index b34d812bc5d056d47b7d39181668572cde4f53ca..98ccbdef646f9acde302f0b87c8a3ac309be6d6e 100644 (file)
@@ -197,6 +197,10 @@ static inline u8 dsa_upstream_port(struct dsa_switch *ds)
                return ds->pd->rtable[dst->cpu_switch];
 }
 
+struct switchdev_trans;
+struct switchdev_obj;
+struct switchdev_obj_port_fdb;
+
 struct dsa_switch_driver {
        struct list_head        list;
 
@@ -316,13 +320,17 @@ struct dsa_switch_driver {
        /*
         * Forwarding database
         */
+       int     (*port_fdb_prepare)(struct dsa_switch *ds, int port,
+                                   const struct switchdev_obj_port_fdb *fdb,
+                                   struct switchdev_trans *trans);
        int     (*port_fdb_add)(struct dsa_switch *ds, int port,
-                               const unsigned char *addr, u16 vid);
+                               const struct switchdev_obj_port_fdb *fdb,
+                               struct switchdev_trans *trans);
        int     (*port_fdb_del)(struct dsa_switch *ds, int port,
-                               const unsigned char *addr, u16 vid);
-       int     (*port_fdb_getnext)(struct dsa_switch *ds, int port,
-                                   unsigned char *addr, u16 *vid,
-                                   bool *is_static);
+                               const struct switchdev_obj_port_fdb *fdb);
+       int     (*port_fdb_dump)(struct dsa_switch *ds, int port,
+                                struct switchdev_obj_port_fdb *fdb,
+                                int (*cb)(struct switchdev_obj *obj));
 };
 
 void register_switch_driver(struct dsa_switch_driver *type);