net: dsa: let switches specify their tagging protocol
In order to support the new DSA device driver model, a dsa_switch should be able to advertise the type of tagging protocol supported by the underlying switch device. This also removes constraints on how tagging can be stacked to each other. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
df197195a5
commit
5929903103
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user