mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-08 07:21:27 +00:00
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:
parent
df197195a5
commit
5929903103
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue