[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201130140610.4018-1-tobias@waldekranz.com>
Date: Mon, 30 Nov 2020 15:06:06 +0100
From: Tobias Waldekranz <tobias@...dekranz.com>
To: davem@...emloft.net, kuba@...nel.org
Cc: andrew@...n.ch, vivien.didelot@...il.com, f.fainelli@...il.com,
olteanv@...il.com, j.vosburgh@...il.com, vfalico@...il.com,
andy@...yhouse.net, netdev@...r.kernel.org
Subject: [PATCH v2 net-next 0/4] net: dsa: Link aggregation support
Start of by adding an extra notification when adding a port to a bond,
this allows static LAGs to be offloaded using the bonding driver.
Then add the generic support required to offload link aggregates to
drivers built on top of the DSA subsystem.
Finally, implement offloading for the mv88e6xxx driver, i.e. Marvell's
LinkStreet family.
Supported LAG implementations:
- Bonding
- Team
Supported modes:
- Isolated. The LAG may be used as a regular interface outside of any
bridge.
- Bridged. The LAG may be added to a bridge, in which case switching
is offloaded between the LAG and any other switch ports. I.e. the
LAG behaves just like a port from this perspective.
In bridged mode, the following is supported:
- STP filtering.
- VLAN filtering.
- Multicast filtering. The bridge correctly snoops IGMP and configures
the proper groups if snooping is enabled. Static groups can also be
configured. MLD seems to work, but has not been extensively tested.
- Unicast filtering. Automatic learning works. Static entries are
_not_ supported. This will be added in a later series as it requires
some more general refactoring in mv88e6xxx before I can test it.
v1 -> v2:
- Allocate LAGs from a static pool to avoid late errors under memory
pressure, as suggested by Andrew.
RFC -> v1:
- Properly propagate MDB operations.
- Support for bonding in addition to team.
- Fixed a locking bug in mv88e6xxx.
- Make sure ports are disabled-by-default in mv88e6xxx.
- Support for both DSA and EDSA tagging.
Tobias Waldekranz (4):
net: bonding: Notify ports about their initial state
net: dsa: Link aggregation support
net: dsa: mv88e6xxx: Link aggregation support
net: dsa: tag_dsa: Support reception of packets from LAG devices
drivers/net/bonding/bond_main.c | 2 +
drivers/net/dsa/mv88e6xxx/chip.c | 234 +++++++++++++++++++++++++++-
drivers/net/dsa/mv88e6xxx/chip.h | 4 +
drivers/net/dsa/mv88e6xxx/global2.c | 8 +-
drivers/net/dsa/mv88e6xxx/global2.h | 5 +
drivers/net/dsa/mv88e6xxx/port.c | 21 +++
drivers/net/dsa/mv88e6xxx/port.h | 5 +
include/net/dsa.h | 97 ++++++++++++
net/dsa/dsa.c | 12 +-
net/dsa/dsa2.c | 51 ++++++
net/dsa/dsa_priv.h | 31 ++++
net/dsa/port.c | 141 +++++++++++++++++
net/dsa/slave.c | 83 +++++++++-
net/dsa/switch.c | 49 ++++++
net/dsa/tag_dsa.c | 17 +-
15 files changed, 744 insertions(+), 16 deletions(-)
--
2.17.1
Powered by blists - more mailing lists