Skip to content

Commit c4ead49

Browse files
feat(linux): Add HSR documentation for AM65x, AM335x, AM437x and AM57x
Add HSR offload and non-offload documentation support for AM65x, AM335x, AM437x and AM57x. Update the hsr scripts to include interface up/down before enabling HSR. Update PRUSS documentation for AM335x, AM437x and AM57x. Signed-off-by: Meghana Malladi <[email protected]>
1 parent 1989533 commit c4ead49

File tree

7 files changed

+205
-193
lines changed

7 files changed

+205
-193
lines changed

configs/AM335X/AM335X_linux_toc.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ linux/Foundational_Components/Kernel/Kernel_Drivers/GPIO
5151
linux/Foundational_Components/Kernel/Kernel_Drivers/I2C
5252
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW
5353
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/PRUSS
54+
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_PRP_Non_Offload
55+
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload
5456
linux/Foundational_Components/Kernel/Kernel_Drivers/PWM
5557
linux/Foundational_Components/Kernel/Kernel_Drivers/SPI
5658
linux/Foundational_Components/Kernel/Kernel_Drivers/Storage/NAND

configs/AM437X/AM437X_linux_toc.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ linux/Foundational_Components/Kernel/Kernel_Drivers/GPIO
5151
linux/Foundational_Components/Kernel/Kernel_Drivers/I2C
5252
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW
5353
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/PRUSS
54+
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_PRP_Non_Offload
55+
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload
5456
linux/Foundational_Components/Kernel/Kernel_Drivers/PWM
5557
linux/Foundational_Components/Kernel/Kernel_Drivers/QSPI
5658
linux/Foundational_Components/Kernel/Kernel_Drivers/SPI

configs/AM57X/AM57X_linux_toc.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ linux/Foundational_Components/Kernel/Kernel_Drivers/I2C
5353
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW
5454
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/NetCP
5555
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/PRUSS
56+
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_PRP_Non_Offload
57+
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload
5658
linux/Foundational_Components/Kernel/Kernel_Drivers/PCIe/PCIe_End_Point
5759
linux/Foundational_Components/Kernel/Kernel_Drivers/PCIe/PCIe_Root_Complex
5860
linux/Foundational_Components_Power_Management

configs/AM65X/AM65X_linux_toc.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ linux/Foundational_Components/Kernel/Kernel_Drivers/I2C
5151
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW2g
5252
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW-EST
5353
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW-IET
54+
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_PRP_Non_Offload
55+
linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload
5456
linux/Foundational_Components/Kernel/Kernel_Drivers/PCIe/PCIe_End_Point
5557
linux/Foundational_Components/Kernel/Kernel_Drivers/PCIe/PCIe_Root_Complex
5658
linux/Foundational_Components/Kernel/Kernel_Drivers/PWM

source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/HSR_Offload.rst

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ forwarding and Tx packet duplication offloaded
7373
ip link set hsr0 down
7474
ip link delete hsr0 2> /dev/null
7575
76+
ip link set $ifa down
77+
ip link set $ifb down
78+
sleep 1
79+
7680
if [ "$1" = "hsr_hw" ]
7781
then
7882
ethtool -k "$ifa" | grep hsr
@@ -99,6 +103,9 @@ forwarding and Tx packet duplication offloaded
99103
100104
ip addr add "$ip"/24 dev $if
101105
ip link set $if up
106+
ip link set $ifa up
107+
ip link set $ifb up
108+
sleep 1
102109
103110
To create HSR interface with IP address 192.168.2.20 using eth1 and eth2,
104111
run the script by passing the arguments as below
@@ -400,12 +407,15 @@ CPU usage at Node B found to be negligible
400407
0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
401408
1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
402409
403-
.. rubric:: Througput at Node A
410+
.. ifconfig:: CONFIG_part_variant in ('AM64X', 'AM65X')
411+
412+
.. rubric:: Througput at Node A
413+
414+
.. list-table:: Throughput performance
415+
:widths: 25 25
404416

405-
.. list-table:: Throughput performance
406-
:widths: 25 25
417+
* - Sender
418+
- Receiver
419+
* - 505 Mbits/sec
420+
- 504 Mbits/sec
407421

408-
* - Sender
409-
- Receiver
410-
* - 505 Mbits/sec
411-
- 504 Mbits/sec

0 commit comments

Comments
 (0)