net: dsa: reference count the MDB entries at the cross-chip notifier level
[linux-2.6-microblaze.git] / include / net / dsa.h
index 5f632cf..2c50546 100644 (file)
@@ -285,6 +285,11 @@ struct dsa_port {
         */
        const struct dsa_netdevice_ops *netdev_ops;
 
+       /* List of MAC addresses that must be forwarded on this port.
+        * These are only valid on CPU ports and DSA links.
+        */
+       struct list_head        mdbs;
+
        bool setup;
 };
 
@@ -299,6 +304,13 @@ struct dsa_link {
        struct list_head list;
 };
 
+struct dsa_mac_addr {
+       unsigned char addr[ETH_ALEN];
+       u16 vid;
+       refcount_t refcount;
+       struct list_head list;
+};
+
 struct dsa_switch {
        bool setup;