From: "Florian Fainelli" <f.fainelli@gmail.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, s.hauer@pengutronix.de, nbd@openwrt.org,
blogic@openwrt.org, jogo@openwrt.org, gary@mlbassoc.com,
"Florian Fainelli" <f.fainelli@gmail.com>
Subject: [PATCH 0/4 net-next] net: phy: add Generic Netlink switch configuration API
Date: Tue, 22 Oct 2013 11:23:45 -0700 [thread overview]
Message-ID: <1382466229-15123-1-git-send-email-f.fainelli@gmail.com> (raw)
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
--
1.8.3.2
next reply other threads:[~2013-10-22 18:24 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-22 18:23 Florian Fainelli [this message]
2013-10-22 18:23 ` [PATCH 1/4 net-next] net: phy: add Generic Netlink Ethernet switch configuration API Florian Fainelli
2013-10-22 19:22 ` Dan Williams
2013-10-22 19:32 ` Florian Fainelli
2013-10-22 19:47 ` David Miller
[not found] ` <1382477150.19269.69.camel@dcbw.foobar.com>
2013-10-22 21:22 ` David Miller
2013-10-22 19:46 ` David Miller
2013-10-22 19:53 ` John Fastabend
2013-10-22 19:59 ` Florian Fainelli
2013-10-22 20:25 ` Neil Horman
2013-10-22 22:09 ` Florian Fainelli
2013-10-23 11:34 ` Neil Horman
2013-10-23 11:47 ` Jamal Hadi Salim
2013-10-23 12:04 ` Felix Fietkau
2013-10-23 12:53 ` Jamal Hadi Salim
2013-10-23 13:31 ` Felix Fietkau
2013-10-23 14:09 ` Jamal Hadi Salim
2013-10-23 14:32 ` Felix Fietkau
2013-10-25 11:43 ` Jamal Hadi Salim
2013-10-25 13:01 ` Felix Fietkau
2013-10-27 17:19 ` Jamal Hadi Salim
2013-10-27 18:14 ` Florian Fainelli
2013-10-28 22:29 ` Jamal Hadi Salim
2013-10-27 19:51 ` Felix Fietkau
2013-10-28 22:53 ` Jamal Hadi Salim
2013-10-29 9:34 ` Felix Fietkau
2013-10-30 11:45 ` Jamal Hadi Salim
2013-10-30 12:53 ` Felix Fietkau
2013-10-30 17:27 ` Lennert Buytenhek
2013-10-30 17:34 ` Lennert Buytenhek
2013-10-30 17:56 ` John Fastabend
2013-10-30 17:56 ` John Fastabend
2013-10-30 19:47 ` Felix Fietkau
2013-12-07 1:45 ` Florian Fainelli
2013-10-29 23:12 ` Maxime Bizon
2013-10-30 11:50 ` Jamal Hadi Salim
2013-10-30 11:58 ` Felix Fietkau
2013-10-30 14:28 ` Maxime Bizon
2013-10-22 18:23 ` [PATCH 2/4 net-next] tools: add Generic Netlink switch configuration tool Florian Fainelli
2013-10-22 18:23 ` [PATCH 3/4 net-next] net: phy: add Broadcom B53 switch driver Florian Fainelli
2013-10-22 18:23 ` [PATCH 4/4 net-next] net: phy: add fake " Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1382466229-15123-1-git-send-email-f.fainelli@gmail.com \
--to=f.fainelli@gmail.com \
--cc=blogic@openwrt.org \
--cc=davem@davemloft.net \
--cc=gary@mlbassoc.com \
--cc=jogo@openwrt.org \
--cc=nbd@openwrt.org \
--cc=netdev@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).