LAG offload for Ocelot DSA switches
Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest12 patches 0 repliesApplied 12/12
- v214 patches 7 repliesSuperseded
Patches in v3 All 12 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | net: mscc: ocelot: rename ocelot_netdevice_port_event to ocelot_netdevice_changeupperdrivers/ | +27 | 0 replies | Applied |
| 2/12 | net: mscc: ocelot: use a switch-case statement in ocelot_netdevice_eventdrivers/ | +45 | 0 replies | Applied |
| 3/12 | net: mscc: ocelot: don't refuse bonding interfaces we can't offloaddrivers/ drivers/ drivers/ | +17 | 0 replies | Applied |
| 4/12 | net: mscc: ocelot: use ipv6 in the aggregation codedrivers/ | +4 | 0 replies | Applied |
| 5/12 | net: mscc: ocelot: set up the bonding mask in a way that avoids a net_devicedrivers/ include/ | +24 | 0 replies | Applied |
| 6/12 | net: mscc: ocelot: avoid unneeded "lp" variable in LAG joindrivers/ | +6 | 0 replies | Applied |
| 7/12 | net: mscc: ocelot: set up logical port IDs centrallydrivers/ | +28 | 0 replies | Applied |
| 8/12 | net: mscc: ocelot: drop the use of the "lags" arraydrivers/ include/ | +39 | 0 replies | Applied |
| 9/12 | net: mscc: ocelot: rename aggr_count to num_ports_in_lagdrivers/ | +3 | 0 replies | Applied |
| 10/12 | net: mscc: ocelot: rebalance LAGs on link up/down eventsdrivers/ drivers/ drivers/ +1 more | +64 | 0 replies | Applied |
| 11/12 | net: dsa: make assisted_learning_on_cpu_port bypass offloaded LAG interfacesnet/ net/ | +21 | 0 replies | Applied |
| 12/12 | net: dsa: felix: propagate the LAG offload ops towards the ocelot libdrivers/ drivers/ include/ | +38 | 0 replies | Applied |
Reviews trailers per patch
5 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Alexandre Belloni |
|---|---|
| 1/12 | |
| 2/12 | R-b |
| 3/12 | R-b |
| 4/12 | R-b |
| 5/12 | R-b |
| 6/12 | R-b |
| 7/12 | |
| 8/12 | |
| 9/12 | |
| 10/12 | |
| 11/12 | |
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RESEND v3 net-next 00/12] LAG offload for Ocelot DSA switches
From: Vladimir Oltean <[email protected]>
This patch series reworks the ocelot switchdev driver such that it could share the same implementation for LAG offload as the felix DSA driver.
Testing has been done in the following topology:
+----------------------------------+
| Board 1 br0 |
| +---------+ |
| / \ |
| | | |
| | bond0 |
| | +-----+ |
| | / \ |
| eno0 swp0 swp1 swp2 |
+---|--------|-------|-------|-----+
| | | |
+--------+ | |
Cable | |
Cable| |Cable
Cable | |
+--------+ | |
| | | |
+---|--------|-------|-------|-----+
| eno0 swp0 swp1 swp2 |
| | \ / |
| | +-----+ |
| | bond0 |
| | | |
| \ / |
| +---------+ |
| Board 2 br0 |
+----------------------------------+The same script can be run on both Board 1 and Board 2 to set this up:
ip link del bond0
ip link add bond0 type bond mode balance-xor miimon 1
OR
ip link add bond0 type bond mode 802.3ad
ip link set swp1 down && ip link set swp1 master bond0 && ip link set swp1 up ip link set swp2 down && ip link set swp2 master bond0 && ip link set swp2 up ip link del br0
ip link add br0 type bridge
ip link set bond0 master br0
ip link set swp0 master br0
Then traffic can be tested between eno0 of Board 1 and eno0 of Board 2.
Vladimir Oltean (12):
net: mscc: ocelot: rename ocelot_netdevice_port_event to
ocelot_netdevice_changeupper
net: mscc: ocelot: use a switch-case statement in
ocelot_netdevice_event
net: mscc: ocelot: don't refuse bonding interfaces we can't offload
net: mscc: ocelot: use ipv6 in the aggregation code
net: mscc: ocelot: set up the bonding mask in a way that avoids a
net_device
net: mscc: ocelot: avoid unneeded "lp" variable in LAG join
net: mscc: ocelot: set up logical port IDs centrally
net: mscc: ocelot: drop the use of the "lags" array
net: mscc: ocelot: rename aggr_count to num_ports_in_lag
net: mscc: ocelot: rebalance LAGs on link up/down events
net: dsa: make assisted_learning_on_cpu_port bypass offloaded LAG
interfaces
net: dsa: felix: propagate the LAG offload ops towards the ocelot lib
drivers/net/dsa/ocelot/felix.c | 32 ++++ drivers/net/ethernet/mscc/ocelot.c | 206 ++++++++++++++----------- drivers/net/ethernet/mscc/ocelot.h | 4 - drivers/net/ethernet/mscc/ocelot_net.c | 131 ++++++++++------ include/soc/mscc/ocelot.h | 11 +- net/dsa/dsa_priv.h | 13 ++ net/dsa/slave.c | 8 + 7 files changed, 262 insertions(+), 143 deletions(-)
Signature · 1 line
2.25.1