]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: add port private structure
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 12 Feb 2016 17:09:38 +0000 (12:09 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Feb 2016 19:52:46 +0000 (14:52 -0500)
commit8481930ba9e8c23ec52de7894db45c7da5525672
tree382c9f61d8c17a8d9903e0626f547fd4ac76ff55
parent213fa9ebcf646153c8db8d5ca5ecd3fd6c645d75
net: dsa: mv88e6xxx: add port private structure

Add a per-port mv88e6xxx_priv_port structure to store per-port related
data, instead of adding several arrays of DSA_MAX_PORTS elements in the
mv88e6xxx_priv_state structure.

It currently only contains the port STP state.

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