TDA4VM: CPSW2G: Unable to transmit ethernet frames to unregistered multicast destination address

Part Number: TDA4VM

Tool/software:

Hi TI,

Hope you are doing well.

I am using PDK v8.2 and based on my use case I have modified the Enet loopback example to communicate with external device (CANoe).
In my use case, I have MAC filtering enabled as I don't want to receive unregistered multicast to be received on CPSW2G device (MCU_CPSW0).

The issue I am facing now is I am unable to transmit to unregistered muticast destination address.

I have the following settings for ALE for Filtering:

CPSW_ALE_UVLAN_MEMBER: UVLAN_MEMBER_LIST (bits 0-1) to value 3
CPSW_ALE_UVLAN_URCAST: UVLAN_UNREG_MCAST_FLOOD_MASK (bits 0-1) to value 0
CPSW_ALE_UVLAN_RMCAST: UVLAN_REG_MCAST_FLOOD_MASK (bits 0-1) to value 3

Question: What is the normal procedure to transmit ethernet frames to unregistered Multicast destination address?

Looking forward to hearing back from you.


Best Regards,
Hasan

  • Hi,

    If VLAN entry of packet is not found then it will use CPSW registers configured for Un-known VLANs filter operations.
    If VLAN entry of packet is found then it will use filter operations as per entry.

    CPSW_ALE_UVLAN_URCAST: UVLAN_UNREG_MCAST_FLOOD_MASK (bits 0-1) to value 0

    As this is 0, Unknown VLAN and un-registerd multicast will be dropped by ALE.
    If bit-0 is set then Host will accept those packets.
    If bit-1 is set then packet will be sent from external port.

    If both bits (0,1) set i.e. 0x3 value then Host Port will receive the unknown VLAN and Unregistered Multicast packets, at the same time if packet generated internally will be sent out on external port.

    If you want to handle specific packets, please add ALE entry corresponding to it.


    Best Regards,
    Sudheer