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.

Unconfigured Mode in PA

Hi Ti Folks,

                  some time i had question in forum about receiving packet even before all rules are set. I am pasting the previous discussion so as to get to the understanding quickly.

=======================

http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/206304/731729.aspx#731729

1. In the PA_SimpleExample Project, all the configuration packets [setMacs,SetIps and SetPorts are all configured apriori]. Can i have this way of operation, before all these are done [[setMacs,SetIps and SetPorts are all configured apriori]], i want to receive the Macs,IPs,Ports through ethernet and then do the setMacs,SetIps and SetPorts. Basically my code doesn't have the Macs,Ips,Ports database, someone will send over ethernet and based on that it needs to start doing the setMacs,SetIps and SetPorts are all configured apriori ?. I assume it shud be possible.please throw more light on the same as to how to achieve it.

[Eric] It is not possible to set the classification rules until you know what the rules are. If you are waiting for someone to send you the rules which should be send to the EVM MAC address, you can configure PASS to accept the so-called configuration packets of which the destination MAC address is equal to the EVM mac address. You can also use broadcast MAC packet to send the configuration packets.

=======================

based on above discussion, i have few questions

1. If i understand correctly,EVM mac address can be found out from Viewing ALE Table. let me know is there any other way?

2. without configuring/assigning any QMSS queue to any MAC[broadcast or EVM mac address], where will the packet land in the dsp?

3. should i need to configure exception route first i.e. Pa_configExceptionRoute to receive any broadcast MAC [since broadcast MAC can also be on of the criterion]?

my aim/objective is before setting any rules, i want to get a ethernet packet from external world. 

Thanks

RC Reddy

  • Hi RC,

    If you are trying to use the NDK and the PA than currently the NDK does not  utilize the PA subsystem (http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/194486/695007.aspx#695007),

    Thanks,

    HR

  • Hi Ti Folks,

                        Further adding to above question. I wanted a way to get the ETH packets EVEN BEFORE I do QMSS/CPPI init/configuration/setup. In brief here is what i wanted to achieve.

    1. Bootup.

    2. receive qmss/cppi [number of descriptors and size of descriptors] configuration to be created from EXTERNAL WORLD through ETHERNET.

    3. receive PA SETMACS,SETIPs,SETports, Set classification rules from EXTERNAL WORLD through ETHERNET.

    4. After getting qmss/cppi config [in step 2] and PA config related info [in step 3].

    5. apply qmsss/cppi configuration 

    6. apply PA configuration.

    so a single PACKET receive has to happen before QMSS/CPPI and PA config.

    can you please let me know how i can achieve this.

    Thanks

    RC Reddy

  • Hi Reddy,

    You have to initialize qmss/cpdma/pa/cpsw/sgmii/serdes in order to receive and transmit a packet. In your scenario, what you can do is give a minimum setup for qmss/cpdma/pa/cpsw/sgmii/serdes, so that it can receive all the configurations, and then tear down qmss/cpdma/pa/cpsw/sgmii/serdes before re-initiaze them again with the received configurations.

    You may refer to the Ethernet loopback test in the MCSDK POST (mcsdk_xx_xx_xx\tools\post) as an example on how to have a minimum setup, note that when you tear down the QM, you need to pop up all the queue descriptors that have been pushed and then reset the linking ram and memory region. Please refer to the HW drivers in IBL (mcsdk_xx_xx_xx\tools\boot_loader\ibl\src\hw\xx) for the examples how to initialize and tear down QM/PA with minimum setup.

    Regards,

    Hao.

     

  • Hi Hao,

                 Thanks for your reply. This answers my question to the most extent. Will get back to you, if more questions.

    Thanks

    RC Reddy