net: dsa: let switches specify their tagging protocol
[firefly-linux-kernel-4.4.55.git] / include / net / dsa.h
index c542c131d5512ae233a98a43468e56a66b5609db..b525ac5165599427204e839fe0a63a127c5a7ed7 100644 (file)
@@ -127,6 +127,11 @@ struct dsa_switch {
        struct dsa_switch_tree  *dst;
        int                     index;
 
+       /*
+        * Tagging protocol understood by this switch
+        */
+       enum dsa_tag_protocol   tag_protocol;
+
        /*
         * Configuration data for this switch.
         */