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.

[FAQ] TDA4VM: How can I forward the packet received on one external port to another port of CPSWnG with a different VLAN ID?

Part Number: TDA4VM

How can I forward the packet received on one external port to another port of CPSWnG with a different VLAN ID?

  • CPSW from the TDA4 device has a feature named HW Inter-VLAN. We can change the VLAN ID in the ingress packet and forward/egress it on another port.

    We can also replace the Source and Destination MAC address if required and also can change the TTL value of the L3 packet.

    This HW Inter-VLAN is based on ALE policer match using different classifications rules of ingress packet like Source MAC Address, Destination MAC Address, Port Number, IPv4, Ipv6, Ether Type, and so on.

    But, a VLAN match along with the destination MAC address (ALE with packet forward to Host Port) of the ingress port is a must alongside any of the above classifier rules.

    Please refer to the TRM of the TDA4 device for more details about HW Inter-VLAN and various classification rules and ALE.

    We have RTOS Ethernet firmware Application for CPSWnG (CPSW5G, CPSW9G) instance from TDA4 devices.

    Please refer to the below patch based on the Ethernet Firmware application for enabling HW Inter-VLAN for ingress packet from Port-3 with VLAN 100 and egress on Port-5 with VLAN 200. 

    Patch: (patch is based on TI SDK: ti-processor-sdk-rtos-j721e-evm-08_06_00_12)
    0001-HW-Inter-VLAN-enable-based-on-Port-Number-VLAN.patch

    Output Log:
    Packet capture at Tx(input) to Ingress Port & Output of Egress Port

     Ingress Packet: (sent to Port-3 using a packEth application from a Linux PC)


    Best Regards,
    Sudheer