Forum Discussion
Altera_Forum
Honored Contributor
12 years agoTSE MAC and SGDMA
Hi there, I am using TSE MAC and SGDMA to capture a network frame,i am facing a issue related to receive frame. Let me first clear my receive flow. 1)open the SGDMA by "alt_avalon_sgdma_ope...
Altera_Forum
Honored Contributor
12 years agoI didn't check in details, but the principle seems right. Are you still encountering any problems?
The only strange thing I found was this/* Done with these, time to clean up after ourselves. */
printf("***********match_count %d\n",match_count);
// free(receive_ptr_rx); why did you comment the free() call here? It should be the right place to do so, inside the for loop. If you put that line with the other free() calls at the end of your function you will only free the last buffer and not the first ones, and you'll have a memory leak.