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.

TDA4VM: CPSW9 configuration

Part Number: TDA4VM


Hello Team,

In the TRM it is written:

"VLANs can be configured to only allow up to four different IPv4 Protocols or IPv6"

How can I configure these protocols and which 4 protocols can be configured ?

I cannot find any information about it.

Thanks

  • Hi,

    How can I configure these protocols and which 4 protocols can be configured ?

    Please refer to CPSW_ALE_CTRL2.DEFLMTNXTHDR for configuration of IPv4 Protocol or IPv6 Next Header Limits in IP packets with VLAN.

    Protocols can be configured from "CPSW_ALE_NXT_HDR" register.

    Note:
    We need to set "LMTNXTHDR" bit in VLAN ALE entry as well as shown in below.



    All above information is available in TRM.

    Best Regards,
    Sudheer

  • Hi ,

    I need an additional clarification:

    "Default limit next header field will cause an IPv4 protocol or IPv6 next header packet to be dropped if a VLAN entry is not found AND the protocol or next header does not match the CPSW_ALE_NXT_HDR register values"

    Is the "and" in the statement correct ? My understanding is that the pakets shall be dropped if there is no VLAN entry OR there is a VLAN entry but the the protocol or next header does not match the CPSW_ALE_NXT_HDR register values.

    Thanks

  • Hi,

    We have not tested this feature.

    As per my understanding, packet should have valid VLAN entry and also protocol should match then only packet will be accepted if not it will be dropped.
    Also,  LMTNXTHDR is bit filed in VLAN entry. It should be in combination with valid VLAN ID.

    Even if packet having valid VLAN ID and protocol doesn't match then also packet will be dropped.

    Is the "and" in the statement correct ? My understanding is that the pakets shall be dropped if there is no VLAN entry OR there is a VLAN entry but the the protocol or next header does not match the CPSW_ALE_NXT_HDR register values.

    Your understanding is correct.

    Best Regards,
    Sudheer