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.

DRA829V: [EP2000][Main2_0] : ETHFW RTOS SDK 10.1 : Need to receive any data from MAC interface regardless of MAC addr or VLAN, non VLAN

Part Number: DRA829V

Tool/software:

Hello Expert,

          We are using SDK 10.1 in our project, MAC only and Switch interfaces were created for MCU2_1 with MAC addresses at initialization time, currently node is receiving data on MAC or Switch interface when we are sending the data with assigned MAC addr as dest MAC addr, as per our requirement on MAC interface of MCU 2_1 we should receive the data when data coming with any dest MAC addr , Tagged or untagged, how to configure this ?  

Regards,

Satya. 

  • Hi Satya, 

    We are using SDK 10.1 in our project, MAC only and Switch interfaces were created for MCU2_1 with MAC addresses at initialization time, currently node is receiving data on MAC or Switch interface when we are sending the data with assigned MAC addr as dest MAC addr,

    Yes, default cpsw will allow packets of known I.e only registered MAC and VLAN. 

    as per our requirement on MAC interface of MCU 2_1 we should receive the data when data coming with any dest MAC addr , Tagged or untagged, how to configure this ?  

    You can enable copy all frames to host port from MACONLY port mapped to MCU2_1 client. 

    Best Regards, 

    Sudheer

  • Hi Sudheer,

             Host port means port 0 ?  As per our requirement we need to receive any unknown packet in MCU2_1 core of MAC interface  no need to copy to host port, how can we do this ? in our case PORT 7 is MAC only port for MCU2_1 core so whatever the data we receive on PORT7 everything should be received on Mac only interface of  MCU2_1 core, no need to copy to Host port. 

    Regards,

    Satya

  • Hi,

     Host port means port 0 ? 

    yes, Host Port mean Internal CPPI Port usually termed as Port-0, External Ports termed as Port-1 to Port-8.

    As per our requirement we need to receive any unknown packet in MCU2_1 core of MAC interface  no need to copy to host port, how can we do this ?

    Without packets reaching to Host Port, will not be forwarded to any of internal cores.

    Packets from any external will reach Host Port as per ALE and forwarded to internal cores using classifier via flows.

    By default there was an classifier entry based on Port number, if anything reached to Host Port from MAC Only Port will be forwarded to the specific flow  belongs to client.

    In order to forward all packets to MCU2_1 client of MAC only interface, all packets on Port-7 should read Host Port.
    For this you need to enable copy all frame to Host Port on Port-7.

    Venu already aware of this change in SDK 7.3, please check with him and enable in 10.1 from Port-7 then all packets received on Port-7 will be sent to MCU2_1 MAC only interface.
    Refer to below:
    e2e.ti.com/.../dra829v-ep2000-cpsw-9g-port-7-data-is-not-routing-to-main21

    Best Regards,
    Sudheer

  • Hi Sudheer,

              I did check with venu and i also tried as like that but issue is still same means unknown packets were not reaching to MCU2_1, what could be the issue? Any other changes required in 10.1 SDK?

    Regards,

    Satya.

  • Hi,

        I did check with venu and i also tried as like that but issue is still same means unknown packets were not reaching to MCU2_1, what could be the issue? Any other changes required in 10.1 SDK?

    Above Index 7 is MAC Port-8.
    If you want Port-7 use number 6, I have explained to @venu how to make above change from application main.c it self.
    Please make change from application main.c file.

    Also, make sure copy all frames is enabled from cpsw_ale.c fie for Port-7 ALE control register.

    Best Regards,
    Sudheer

  • Hi Sudheer,

     

            Actually venu left from Aptiv, so i can't reach him for queries, but i tried with index 6 for PORT-7 still issue is same and this change is from cpsw_ale.c file only. could you please let me know if i am missing something. 

    Regards,

    Satya. 

  • Hi Sudheer,

        To application i am directly tapping data from ethernet_input function is may causes some issue?

    If you are ok to have a short call please let me know your feasible time i will arrange a meeting. 

    Regards,

    Satya. 

  • Hi,

            Actually venu left from Aptiv, so i can't reach him for queries, but i tried with index 6 for PORT-7 still issue is same and this change is from cpsw_ale.c file only. could you please let me know if i am missing something. 

    Okay, have you taken care of copy all enable from CPSW_Iy_ALE_PORTCTL0_y register of Port-7?

    Can you please share the value of register?

        To application i am directly tapping data from ethernet_input function is may causes some issue?

    You can tap at lwip stack, where it parse the receive packet.

    Best Regards,
    Sudheer

  • Hi Sudheer,

           Sorry for late reply due to other work,   Issue got resolved after added the below fix for PORT7, let me know if something needs to be improved than this. 

    Regards,

    satya. 

  • Hi,

       Sorry for late reply due to other work,   Issue got resolved after added the below fix for PORT7, let me know if something needs to be improved than this. 

    Thanks for the confirmation and good to hear that your use-case is achieved.

    No, above is fine as suggested earlier.

    Best Regards,
    Sudheer