Skip to content

Commit d5064df

Browse files
danish-ticshilwant
authored andcommitted
fix(HSR_Offload): HSR Script
Fix the script to enable / disable HSR_Offload on AM64x. The steps to enable / disable HSR_Offload mode got changed during the upstreaming of HSR driver. Fix the existing script. Signed-off-by: MD Danish Anwar <[email protected]>
1 parent 3f9e1c0 commit d5064df

File tree

1 file changed

+0
-16
lines changed
  • source/linux/Foundational_Components/Kernel/Kernel_Drivers/Network

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,15 @@ forwarding and Tx packet duplication offloaded
6666
ip=$4
6767
mac=$(ifconfig "$ifa" | grep ether | cut -d " " -f 10)
6868
69-
device="platform/"
70-
device=${device}$(dmesg | grep "$ifa" | grep icssg-prueth | grep -m 1 "Link is Up" | awk '{print $4}')
71-
7269
echo "ip=$ip"
7370
echo "if=$if"
7471
echo "mac=$mac"
7572
echo "slave-a=$ifa"
7673
echo "slave-b=$ifb"
77-
echo "device=$device"
7874
7975
ip link set hsr0 down
8076
ip link delete hsr0 2> /dev/null
8177
82-
ip link set "$ifa" down
83-
ip link set "$ifb" down
84-
sleep 1
85-
8678
if [ "$1" = "hsr_hw" ]
8779
then
8880
ethtool -k "$ifa" | grep hsr
@@ -98,19 +90,11 @@ forwarding and Tx packet duplication offloaded
9890
ethtool -K "$ifb" hsr-tag-ins-offload on
9991
ethtool -K "$ifb" hsr-tag-rm-offload on
10092
ethtool -k "$ifb" | grep hsr
101-
102-
devlink dev param set "$device" name hsr_offload_mode value true cmode runtime
10393
fi
10494
10595
ip link set dev "$ifa" address "$mac"
10696
ip link set dev "$ifb" address "$mac"
10797
108-
ip link set "$ifa" up
109-
sleep 1
110-
111-
ip link set "$ifb" up
112-
sleep 1
113-
11498
ip link add name $if type hsr slave1 "$ifa" slave2 "$ifb" supervision 45 version 1
11599
116100
sleep 3

0 commit comments

Comments
 (0)