Skip to content

Commit 58bd36d

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 58bd36d

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

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

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ 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-
135132
# To enable cut thru for slice0 q0
136133
devlink dev param set platform/icssg1-eth name cut_thru value 1 cmode runtime
137134
@@ -144,9 +141,6 @@ Assuming eth1 and eth2 are the active ports of ICSSG1 on AM64xx-EVM, to enable c
144141
# To enable cut thru 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,33 @@ 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+
Cut thru value should be set up first before enabling switch mode to ensure that
166+
cut thru is working properly. This order ensures that firmware is loaded with the
167+
expected cut thru value.
168+
169+
Below steps order is suggested for enabling cut thru in switch mode
170+
171+
.. code-block:: console
172+
173+
# Enable Cut-through
174+
# Will only take affect if a firmware reload occurs
175+
# To enable cut thru for slice0 q0, q1 and slice1 q0, q1
176+
devlink dev param set platform/icssg1 name cut_thru value 771 cmode runtime
177+
178+
# Enable Switch Mode
179+
# Will reload the firmware so no need to bring links down and back up again
180+
# Ensure that switch mode is enabled AFTER cut-through
181+
ip link add name bridge0 type bridge
182+
ip link set dev eth1 master bridge0
183+
ip link set dev eth2 master bridge0
184+
ip link set dev bridge0 up
185+
bridge vlan add dev bridge0 vid 1 pvid untagged self
186+
sleep 2
187+
# To check cut-through configuration
188+
devlink dev param show platform/icssg1-eth name cut_thru
189+
169190
PTP
170191
"""
171192
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)