You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
Copy file name to clipboardExpand all lines: source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU_ICSSG_Ethernet_Switch.rst
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,9 +129,6 @@ Assuming eth1 and eth2 are the active ports of ICSSG1 on AM64xx-EVM, to enable c
129
129
130
130
.. code-block:: console
131
131
132
-
ip link set eth1 down
133
-
ip link set eth2 down
134
-
135
132
# To enable cut thru for slice0 q0
136
133
devlink dev param set platform/icssg1-eth name cut_thru value 1 cmode runtime
137
134
@@ -144,9 +141,6 @@ Assuming eth1 and eth2 are the active ports of ICSSG1 on AM64xx-EVM, to enable c
144
141
# To enable cut thru for slice0 q0, q1 and slice1 q0, q1
145
142
devlink dev param set platform/icssg1-eth name cut_thru value 771 cmode runtime
146
143
147
-
ip link set eth1 up
148
-
ip link set eth2 up
149
-
150
144
To show the current cut through status, run the below command,
151
145
152
146
.. code-block:: console
@@ -166,6 +160,33 @@ To disable cut through on all queues
166
160
167
161
devlink dev param set platform/icssg1-eth name cut_thru value 0 cmode runtime
168
162
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
+
169
190
PTP
170
191
"""
171
192
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