support for DSA hardware ethernet switch chips
Subsystems (3)
v3 cover support for DSA hardware ethernet switch chips
This is version 3 of the DSA patch set, with various improvements over v2:
- Move the dsa protocol state pointer in struct net_device to where the other protocol state pointers live (Ben Hutchings).
- Use bools for various functions returning bool, and define a couple of extern functions as extern in the header file (Stephen Hemminger).
- Get rid of dsa_tag_type (TAG_TYPE_{DSA,EDSA,TRAILER}) enum. Since there is a ETH_P_* constant for each tagging type, just use those values to identify the tagging formats.
- Don't forget to use the _ppu versions of the MII access functions for the 88E6131, or PHY accesses won't work at all.
- Use u8 * consistently in the tag_*.c transmit routines (David Miller).
Note that this set depends on the phylib patches just posted.
The following changes since commit c65e0758d1a40bea4f956480fd52503c790911ba:
Lennert Buytenhek (1):
phylib: give mdio buses a device tree presence
are available in the git repository at:
git://git.marvell.com/dsa.git master
Lennert Buytenhek (5):
[NET] Distributed Switch Architecture protocol support [NET] dsa: add support for original DSA tagging format [NET] dsa: add support for the Marvell 88E6131 switch chip [NET] dsa: add support for Trailer tagging format [NET] dsa: add support for the Marvell 88E6060 switch chip
include/linux/if_ether.h | 3 + include/linux/netdevice.h | 24 ++ include/net/dsa.h | 37 ++++ net/Kconfig | 1 + net/Makefile | 1 + net/dsa/Kconfig | 59 +++++ net/dsa/Makefile | 13 ++ net/dsa/dsa.c | 392 ++++++++++++++++++++++++++++++++++ net/dsa/dsa_priv.h | 115 ++++++++++ net/dsa/mv88e6060.c | 287 +++++++++++++++++++++++++ net/dsa/mv88e6123_61_65.c | 421 ++++++++++++++++++++++++++++++++++++ net/dsa/mv88e6131.c | 380 +++++++++++++++++++++++++++++++++ net/dsa/mv88e6xxx.c | 522 +++++++++++++++++++++++++++++++++++++++++++++ net/dsa/mv88e6xxx.h | 93 ++++++++ net/dsa/slave.c | 298 ++++++++++++++++++++++++++ net/dsa/tag_dsa.c | 194 +++++++++++++++++ net/dsa/tag_edsa.c | 213 ++++++++++++++++++ net/dsa/tag_trailer.c | 130 +++++++++++ net/ethernet/eth.c | 12 +
David Miller
maintainerFrom: Lennert Buytenhek <[email protected]>
Date: Wed, 8 Oct 2008 01:43:42 +0200
Quoted 2 lines
This is version 3 of the DSA patch set, with various improvements over v2:
...
Quoted 6 lines
Lennert Buytenhek (5):
[NET] Distributed Switch Architecture protocol support [NET] dsa: add support for original DSA tagging format [NET] dsa: add support for the Marvell 88E6131 switch chip [NET] dsa: add support for Trailer tagging format [NET] dsa: add support for the Marvell 88E6060 switch chip
All applied and pushed out to net-next-2.6, thanks!
David Miller
maintainerFrom: David Miller <[email protected]>
Date: Wed, 08 Oct 2008 17:29:47 -0700 (PDT)
Quoted 6 lines
From: Lennert Buytenhek <[email protected]>
Date: Wed, 8 Oct 2008 01:43:42 +0200Quoted 2 lines
This is version 3 of the DSA patch set, with various improvements over v2:
...
Quoted 8 lines
Quoted 6 lines
Lennert Buytenhek (5):
[NET] Distributed Switch Architecture protocol support [NET] dsa: add support for original DSA tagging format [NET] dsa: add support for the Marvell 88E6131 switch chip [NET] dsa: add support for Trailer tagging format [NET] dsa: add support for the Marvell 88E6060 switch chipAll applied and pushed out to net-next-2.6, thanks!
I had to add the following patch to fix the allmodconfig build. If DSA is enabled, since it's a bool it can only be 'y', and PHYLIB happens to be "m", things explode.
Fix this by adding appropriate select directive.
dsa: Need to select PHYLIB.
--- net/dsa/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
net/dsa/Kconfig +1 -0
@@ -2,6 +2,7 @@ menuconfig NET_DSA bool "Distributed Switch Architecture support" default n depends on EXPERIMENTAL + select PHYLIB ---help--- This allows you to use hardware switch chips that use the Distributed Switch Architecture.
Signature · 1 line
1.5.6.5