net: dsa: hsr: Enable HSR HW offloading for KSZ9477
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest5 patches 14 repliesApplied 5/5
- v55 patches 13 repliesSuperseded
- v4 RFC posting 2/21 patch 0 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 RFC posting 1/2 | 1 patch | 20 replies | Superseded | |
| v3 RFC | 4 patches | 19 replies | Superseded | |
| v2 | 4 patches | 6 replies | Superseded | |
| v1 | 4 patches | 2 replies | Superseded |
Patches in v6 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net: dsa: propagate extack to ds->ops->port_hsr_join()drivers/ include/ net/ +2 more | +20 | 1 reply | Applied |
| 2/5 | net: dsa: notify drivers of MAC address changes on user portsinclude/ net/ | +17 | 0 replies | Applied |
| 3/5 | net: dsa: tag_ksz: Extend ksz9477_xmit() for HSR frame duplicationnet/ | +8 | 0 replies | Applied |
| 4/5 | net: dsa: microchip: move REG_SW_MAC_ADDR to dev->info->regs[]drivers/ drivers/ drivers/ +1 more | +3 | 0 replies | Applied |
| 5/5 | net: dsa: microchip: Enable HSR offloading for KSZ9477drivers/ drivers/ drivers/ +1 more | +235 | 0 replies | Applied |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Florian Fainelli | Vladimir Oltean |
|---|---|---|
| Series | R-b | |
| 1/5 | R-b | |
| 2/5 | R-b | |
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 net-next 0/5] net: dsa: hsr: Enable HSR HW offloading for KSZ9477
This patch series provides support for HSR HW offloading in KSZ9477 switch IC.
To test this feature:
ip link add name hsr0 type hsr slave1 lan1 slave2 lan2 supervision 45 version 1 ip link set dev lan1 up
ip link set dev lan2 up
ip a add 192.168.0.1/24 dev hsr0
ip link set dev hsr0 up
To remove HSR network device:
ip link del hsr0
To test if one can adjust MAC address:
ip link set lan2 address 00:01:02:AA:BB:CC
It is also possible to create another HSR interface, but it will only support HSR is software - e.g.
ip link add name hsr1 type hsr slave1 lan3 slave2 lan4 supervision 45 version 1
Test HW:
Two KSZ9477-EVB boards with HSR ports set to "Port1" and "Port2".
Performance SW used:
nuttcp -S --nofork
nuttcp -vv -T 60 -r 192.168.0.2
nuttcp -vv -T 60 -t 192.168.0.2
Code: v6.6.0-rc2+ Linux net-next repository
SHA1: 5a1b322cb0b7d0d33a2d13462294dc0f46911172
Tested HSR v0 and v1
Results:
With KSZ9477 offloading support added: RX: 100 Mbps TX: 98 Mbps
With no offloading RX: 63 Mbps TX: 63 Mbps
Lukasz Majewski (2):
net: dsa: tag_ksz: Extend ksz9477_xmit() for HSR frame duplication
net: dsa: microchip: Enable HSR offloading for KSZ9477
Vladimir Oltean (3):
net: dsa: propagate extack to ds->ops->port_hsr_join()
net: dsa: notify drivers of MAC address changes on user ports
net: dsa: microchip: move REG_SW_MAC_ADDR to dev->info->regs[]
drivers/net/dsa/microchip/ksz8795_reg.h | 7 -- drivers/net/dsa/microchip/ksz9477.c | 77 ++++++++++++ drivers/net/dsa/microchip/ksz9477.h | 2 + drivers/net/dsa/microchip/ksz9477_reg.h | 7 -- drivers/net/dsa/microchip/ksz_common.c | 149 ++++++++++++++++++++++++ drivers/net/dsa/microchip/ksz_common.h | 10 ++ drivers/net/dsa/xrs700x/xrs700x.c | 18 ++- include/net/dsa.h | 13 ++- net/dsa/port.c | 5 +- net/dsa/port.h | 3 +- net/dsa/slave.c | 9 +- net/dsa/tag_ksz.c | 8 ++ 12 files changed, 283 insertions(+), 25 deletions(-)
Signature · 1 line
2.20.1