net: dsa: mv88e6xxx: add STU capability
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 10 May 2016 19:44:29 +0000 (15:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2016 23:34:23 +0000 (19:34 -0400)
commitcb9b9020fca5fd34ab2e21fb36fc2c7a85329426
tree3fb853c7ca7c68cdae61344267b44aef362c9382
parent15d7d7d435cfe1faa1abf62459d6269bb734cfe7
net: dsa: mv88e6xxx: add STU capability

Some switch models have a STU (per VLAN port state database). Add a new
capability flag to switches info, instead of checking their family.

Also if the 6165 family has an STU, it must have a VTU, so add the
MV88E6XXX_FLAG_VTU to its family flags.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h