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.

CPSW support for RSTP (AM335X - Linux)

Hi,

 

We are using the evaluation board TMDXEVM3358-SK-LCD to validate the CPSW for a [migrating/porting] project in which the Rapid Spanning Tree Protocol (RSTP) is the responsible for (re)configuring a ring network.

To implement the RSTP is necessary:

1) Identify from which port came an Ethernet frame (RSTP BPDU input port)

2) Set from which port I want to send an Ethernet frame (RSTP BPDU output port)

3) A BPDU uses a Multicast address as MAC destination address, which must always be sent from a specific port, and moreover, contrary of the standard multicast address, the BPDU must not be forwarded once received. So the switch must be configured in such a way to support the described behavior. 

From previous conversations with TI engineers we had understand that 1, 2 and 3 were feasible but until now we were not able to interact with the driver to configure it as described. By now we installed two different kernel versions: 

Kernel 3.2 and SDK 4.xx.xx.08 linux

Kernel 3.12 and SDK 7.00 linux

Did someone faced the same problem?

thank you!

Jeferson Bemfica

  • Hi Jeferson,

    I will forward this to the factory team.

  • I have not used RSTP, but I am familiar with the STP. STP comes as part the kernel bridge support and on the AM335x dual mac mode must to used to bridge and get STP between the two ports. There is not really any driver interaction necessary to my knowledge. But based on your question what interaction were you expecting to see? Like STP is a higher level kernel function wouldn't RTSP at the same level or higher?
    One question we have seen before is if the switch in the AM335x is capable of sending BPDU packets, it is not. The BPDU must either come from the kernel or deamon.
  • Thank you for answering,

    - "on the AM335x dual mac mode must to used to bridge and get STP between the two ports"

    But going through this way means that we wont be using the switch capabilities of the device, isn't it? but however, is AM335x is not capable of sending BPDU (by default) we will try/need to modify the drivers.

    Thank you again.