Skip to content

net: phy: add Generic Netlink switch configuration API

Florian Fainelli netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: phy: add Generic Netlink Ethernet switch configuration APIDocumentation/networking/swconfig.txt MAINTAINERS drivers/net/phy/Kconfig +5 more+1541 -036 replies
2/4tools: add Generic Netlink switch configuration toolMAINTAINERS tools/Makefile tools/swconfig/.gitignore +4 more+1385 -10 replies
3/4net: phy: add Broadcom B53 switch driverdrivers/net/phy/Kconfig drivers/net/phy/Makefile drivers/net/phy/b53/Kconfig +8 more+2806 -00 replies
4/4net: phy: add fake switch driverdrivers/net/phy/Kconfig drivers/net/phy/Makefile drivers/net/phy/swconfig-hwsim.c+239 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4 net-next] net: phy: add Generic Netlink switch configuration API

Hi all,

This patchset aims at providing Linux with a simple and extensible Ethernet switch configuration API. It comes with two drivers, one for Broadcom BCM53xx aka Roboswitch and a simulation/fake one to help developpers.

These patches have been used in OpenWrt since 2008 to drive various Ethernet switches commonly found in small home and office wireless routers.

The documentation part of the patch explains why this solution was developped in contrast to using DSA, user-space or something else deeply in details, but to summarize:

- DSA is Marvell centric and messes up with the actual Ethernet frames, its control path is scattered around bridge, ethtool and iproute...

- swconfig is focused on providing a standard control path for Ethernet switches out there from $vendor and is extensible without core kernel changes and user-space changes too thanks to its netlink interface

Florian Fainelli (3):
net: phy: add Generic Netlink Ethernet switch configuration API
tools: add Generic Netlink switch configuration tool
net: phy: add fake switch driver

Jonas Gorski (1):
net: phy: add Broadcom B53 switch driver

 Documentation/networking/swconfig.txt |  162 ++++
 MAINTAINERS                           |   11 +
 drivers/net/phy/Kconfig               |   16 +
 drivers/net/phy/Makefile              |    3 +
 drivers/net/phy/b53/Kconfig           |   25 +
 drivers/net/phy/b53/Makefile          |    8 +
 drivers/net/phy/b53/b53_common.c      | 1336 +++++++++++++++++++++++++++++++++
 drivers/net/phy/b53/b53_mdio.c        |  425 +++++++++++
 drivers/net/phy/b53/b53_phy_fixup.c   |   55 ++
 drivers/net/phy/b53/b53_priv.h        |  282 +++++++
 drivers/net/phy/b53/b53_regs.h        |  311 ++++++++
 drivers/net/phy/b53/b53_spi.c         |  329 ++++++++
 drivers/net/phy/swconfig-hwsim.c      |  230 ++++++
 drivers/net/phy/swconfig.c            | 1078 ++++++++++++++++++++++++++
 include/linux/platform_data/b53.h     |   32 +
 include/linux/swconfig.h              |  180 +++++
 include/uapi/linux/Kbuild             |    1 +
 include/uapi/linux/swconfig.h         |  103 +++
 tools/Makefile                        |   10 +-
 tools/swconfig/.gitignore             |    2 +
 tools/swconfig/Makefile               |   15 +
 tools/swconfig/cli.c                  |  328 ++++++++
 tools/swconfig/swlib.c                |  786 +++++++++++++++++++
 tools/swconfig/swlib.h                |  244 ++++++
 24 files changed, 5971 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/networking/swconfig.txt
 create mode 100644 drivers/net/phy/b53/Kconfig
 create mode 100644 drivers/net/phy/b53/Makefile
 create mode 100644 drivers/net/phy/b53/b53_common.c
 create mode 100644 drivers/net/phy/b53/b53_mdio.c
 create mode 100644 drivers/net/phy/b53/b53_phy_fixup.c
 create mode 100644 drivers/net/phy/b53/b53_priv.h
 create mode 100644 drivers/net/phy/b53/b53_regs.h
 create mode 100644 drivers/net/phy/b53/b53_spi.c
 create mode 100644 drivers/net/phy/swconfig-hwsim.c
 create mode 100644 drivers/net/phy/swconfig.c
 create mode 100644 include/linux/platform_data/b53.h
 create mode 100644 include/linux/swconfig.h
 create mode 100644 include/uapi/linux/swconfig.h
 create mode 100644 tools/swconfig/.gitignore
 create mode 100644 tools/swconfig/Makefile
 create mode 100644 tools/swconfig/cli.c
 create mode 100644 tools/swconfig/swlib.c
 create mode 100644 tools/swconfig/swlib.h
Signature · 1 line
1.8.3.2