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.

IPv4 UDP range of port packets to the DSP.

Eric,

Can you please follow up to this new thread. I am trying now to implement what we had discussed in the earlier thread

I am first trying to have 8 different rules for one core on the DSP (core 0) with each rule supporting 256 udp port ranges. What I am finding is it works for the first 4 rules then the Pa_addCustomeLUT2 returns error -10 which says configuration error in the PA. I could send you my code but here is a rough overview of what I have done.

1. Add_MacAddress,

2. Then Add_IPaddress with the specification that it must match IPV4 and be UDP only and it uses index as 0 for the handle and the 2nd parameter in the Pa_addIp function call. I have also set to use CUSTOM_LUT2 and the custindex as 0 in the routeInfo.

3. I am then calling the Pa_setCustomLUT2 using byteOffset = {2, 3, 4, 5} and byteMasks = {0x7, 0, 0, 0} and using the custIndex = 0 in the setCustomLUT2 call

4. I am then calling a function that calls Pa_addCustomLUT2 8 times with the match changing from {0, 0, 0, 0} to {7, 0, 0, 0} and the index changing from i=0 to 7 in the Pa_addCustomLUT2 call. It barfs on i=4.

I tried changing things around and tried doing step 2 above with using custIndex = 4 in the routeInfo and it complained when doing Pa_addIP returning error = -10 also.

It seems like an index greater than 3 does not work for the custom LUT2. It would appear to me that I have sufficient space allocated for all the appropriate handles and tables like is the default emacsExample code.

Any ideas?

Thanks, Aamir

  • Eric,

    You can disregard my earlier question. The pa.h had the number of custom LUT2 entries set to be 4. I figured it out after looking through the PA function pa_conv_routing_info. I will try and figure out how to go about building the new pa library to load prior to executing the calls to different pa functions.

    Thanks, Aamir