Skip to content

Commit 13cd981

Browse files
fix(PRU-ICSS): Update cut thru documentation for switch mode
Cut thru documentation has a gap on the order of steps in which the cut thru needs to be enabled. This commit fixes it by adding the recommended steps order to follow for enabling cut thru. Signed-off-by: Meghana Malladi <[email protected]>
1 parent 7e9fa9b commit 13cd981

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU_ICSSG_Ethernet_Switch.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,24 +129,18 @@ Assuming eth1 and eth2 are the active ports of ICSSG1 on AM64xx-EVM, to enable c
129129

130130
.. code-block:: console
131131
132-
ip link set eth1 down
133-
ip link set eth2 down
134-
135-
# To enable cut thru for slice0 q0
132+
# To enable cut through for slice0 q0
136133
devlink dev param set platform/icssg1-eth name cut_thru value 1 cmode runtime
137134
138-
# To enable cut thru for slice0 q1
135+
# To enable cut through for slice0 q1
139136
devlink dev param set platform/icssg1-eth name cut_thru value 2 cmode runtime
140137
141-
# To enable cut thru for slice0 q0, q1
138+
# To enable cut through for slice0 q0, q1
142139
devlink dev param set platform/icssg1-eth name cut_thru value 3 cmode runtime
143140
144-
# To enable cut thru for slice0 q0, q1 and slice1 q0, q1
141+
# To enable cut through for slice0 q0, q1 and slice1 q0, q1
145142
devlink dev param set platform/icssg1-eth name cut_thru value 771 cmode runtime
146143
147-
ip link set eth1 up
148-
ip link set eth2 up
149-
150144
To show the current cut through status, run the below command,
151145

152146
.. code-block:: console
@@ -166,6 +160,13 @@ To disable cut through on all queues
166160
167161
devlink dev param set platform/icssg1-eth name cut_thru value 0 cmode runtime
168162
163+
.. note::
164+
165+
Set up the cut through value first before enabling switch mode to ensure that
166+
cut through is working properly. This order ensures that firmware is loaded with the
167+
expected cut through value. Setting up switch mode will automatically stop and start
168+
the firmware so no need to bring links down and back up again.
169+
169170
PTP
170171
"""
171172
PTP can be run during switch mode. To run PTP in switch mode, 3 AM64x EVMs need to be connected with middle EVM acting as the switch. Use the following ptp config file on all slave EVMs. For Master EVM, priority1 filed needs to be changed.

0 commit comments

Comments
 (0)