How to configure CPSW to use DLR?
Is there an example of an Ethernet switch application that configures CPSW to use DLR?
Must CPSW be configured as VLAN Aware Mode to use DLR?
Best regards,
Daisuke
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
How to configure CPSW to use DLR?
Is there an example of an Ethernet switch application that configures CPSW to use DLR?
Must CPSW be configured as VLAN Aware Mode to use DLR?
Best regards,
Daisuke
Please post what software you are using - Linux or RTOS? Which version?
Hi Biser-san,
Thank you for your reply.
Our customer wants to know how to configure CPSW to use DLR on bare metal.
Is there an example for bare metal or RTOS?
Best regards,
Daisuke
Hi Daisuke,
The DLR is not currently supported in CPSW (in Starterware), therefore no examples.
It does supported on PRU-ICSS. Please refer to the following link for details
https://processors.wiki.ti.com/index.php/ICSS_EIP_Adapter_Developer_Guide#AM335x
The source code is at C:\ti_am3_610\pdk_am335x_1_0_16\packages\ti\drv\icss_emac.
You can download the Processor SDK RTOS 6.1.0 for AM335x from the following URL:
http://software-dl.ti.com/processor-sdk-rtos/esd/AM335X/latest/index_FDS.html
Ming
Hi Ming-san,
Thank you for your reply.
Does E2E not support how to configure CPSW to use DLR for bare metal?
Our customer wants to use DLR with CPSW to make their networks redundant.
Alternatively, they want to use RSTP. In the Linux example, it seems to be implemented by software (mstpd) in dual MAC mode.
They want to implement RSTP by using ALE in switch mode because they are concerned about software delays.
Can CPSW be configured in switch mode to use RSTP?
For Linux, dual MAC mode and switch mode can be changed by the DTS file, but the Linux example above doesn't seem to support the switch mode.
Best regards,
Daisuke
Hi Ming-san,
Daisuke Maeda said:
Alternatively, they want to use RSTP. In the Linux example, it seems to be implemented by software (mstpd) in dual MAC mode.They want to implement RSTP by using ALE in switch mode because they are concerned about software delays.
Can CPSW be configured in switch mode to use RSTP?
For Linux, dual MAC mode and switch mode can be changed by the DTS file, but the Linux example above doesn't seem to support the switch mode.
I have an additional question related to the above.
Could you tell me how to get the source code for mstpd?
I searched the source code referring to the software manifest, but could not find the version described in the manifest.
http://software-dl.ti.com/processor-sdk-linux/esd/AM335X/latest/exports/software_manifest.htm
Software Name: mstpd
Version: 0.0.7+git0+e4f0ba5a48-r0.89
Location: mstpd_0.0.7+git0+e4f0ba5a48-r0.89_armv7at2hf-neon.ipk
Best regards,
Daisuke
Hi Ming-san,
A new thread for RSTP is here: http://e2e.ti.com/support/processors/f/791/t/875507
Best regards,
Daisuke
Hi Daisuke-san,
Please see the answer from my colleague for thread http://e2e.ti.com/support/processors/f/791/t/875507
In Processor SDK RTOS DLR is not supported and there is no plan to add this feature. The E2E forum only supports the features provided by the current Processor SDK RTOS/Linux.
The CSLr on the other hand, does support this feature. Customers have to implement this feature by themselves based on the CSLr and the TRM.
Ming
Hi Ming-san,
Thank you for your reply.
Ming Wei said:
The DLR is not currently supported in CPSW (in Starterware), therefore no examples.It does supported on PRU-ICSS. Please refer to the following link for details
https://processors.wiki.ti.com/index.php/ICSS_EIP_Adapter_Developer_Guide#AM335x
Is DLR supported only for Ethernet/IP on PRU-ICSS?
The Ethernet/IP application can be modified to work as a Switch application by removing the Ethernet/IP dependencies. DLR seems to be removed in the steps required to create Stand alone switch application from Ethernet/IP application.
Best regards,
Daisuke
Hi Daisuke-san,
Yes, the DLR feature is only supported in the ICSS-EMAC.
Ming
Hi Ming-san,
Thank you for your reply.
I understand that there is no example of using the DLR feature for standard Ethernet on CPSW or ICSS_EMAC.
Our customer will find out how to configure DLR for standard Ethernet on ICSS_EMAC from source code of the Ethernet/IP application.
Best regards,
Daisuke
Hi Ming-san,
I have an additional question for CPSW because our customer tries to configure CPSW to use DLR.
The section 14.3.2.3 "Device Level Ring (DLR) Support" in the TRM describes as follows:
1. DLR is enabled (dlr_en is set in the switch CPSW_Control register).
2. One of the following sequences is true:
- The first packet ltype matches vlan_ltype1 and pX_vlan_ltype1_en is set and the second packet ltype matches dlr_ltype.
- The first packet ltype matches vlan_ltype2 and pX_vlan_ltype2_en is set and the second packet ltype matches dlr_ltype.
- The first packet ltype matches vlan_ltype1 and pX_vlan_ltype1_en is set and the second packet ltype matches vlan_ltype2 and pX_vlan_ltype2_en is set and the third packet ltype matches dlr_ltype.
Does the packet ltype mean Ethertype described in the following link?
https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml
Do the vlan_ltype1 and the vlan_ltype2 mean fields in VLAN_LTYPE Register?
Do the pX_vlan_ltype1_en and the pX_vlan_ltype2_en mean fields in PX_CONTROL Registers?
Does the dlr_ltype mean field in DLR_LTYPE Register?
If so, what Ethertype should be used for DLR protocol? Can any Ethertype be used for user system?
Best regards,
Daisuke
Hi Daisuke-san,
Unfortunately there is no example for set up the DLR for AM335x.
I do not know the answer to the questions in your previous post.
Ming
Hi Ming-san,
Thank you for your reply.
I will suggest to our customer to experiment with VLAN frames (Ethertype = 0x8100) for using the DLR feature.
Alternatively, the customer will experiment with multicast frames (I/G bit = 1b) for redundancy.
Best regards,
Daisuke