diff --git a/source/portable/NetworkInterface/AM243x_v9/Enet_NetIF.c b/source/portable/NetworkInterface/AM243x_v9/Enet_NetIF.c index e82dc0d89a..8b8d6637ae 100644 --- a/source/portable/NetworkInterface/AM243x_v9/Enet_NetIF.c +++ b/source/portable/NetworkInterface/AM243x_v9/Enet_NetIF.c @@ -680,67 +680,6 @@ static void EnetNetIFApp_postSemaphore(void *pArg) } -// static void Lwip2Enet_updateTxNotifyStats(Lwip2Enet_PktTaskStats *pktStats, -// uint32_t packetCount, -// uint32_t timeDiff) -// { -// #if defined(LWIPIF_INSTRUMENTATION_ENABLED) -// uint32_t notificationCount; -// uint32_t timePerPacket = timeDiff / packetCount; - -// notificationCount = pktStats->dataNotifyCnt & (HISTORY_CNT - 1U); -// pktStats->dataNotifyCnt++; - -// pktStats->totalPktCnt += packetCount; -// pktStats->totalCycleCnt += timeDiff; - -// pktStats->cycleCntPerNotify[notificationCount] = timeDiff; -// if (timeDiff > pktStats->cycleCntPerNotifyMax) -// { -// pktStats->cycleCntPerNotifyMax = timeDiff; -// } - -// pktStats->pktsPerNotify[notificationCount] = packetCount; -// if (packetCount > pktStats->pktsPerNotifyMax) -// { -// pktStats->pktsPerNotifyMax = packetCount; -// } - -// pktStats->cycleCntPerPkt[notificationCount] = timePerPacket; -// if (timePerPacket > pktStats->cycleCntPerPktMax) -// { -// pktStats->cycleCntPerPktMax = timePerPacket; -// } -// #endif -// } - -// static uint32_t EnetNetIF_prepTxPktQ(EnetNetIF_TxObj *tx, -// EnetDma_PktQ *pPktQ) -// { -// uint32_t packetCount; -// EnetDma_Pkt *pCurrDmaPacket; -// NetworkBufferDescriptor_t * pxNetworkBuffer; - -// packetCount = EnetQueue_getQCount(pPktQ); - -// pCurrDmaPacket = (EnetDma_Pkt *)EnetQueue_deq(pPktQ); -// while (pCurrDmaPacket) -// { -// pxNetworkBuffer = (NetworkBufferDescriptor_t *)pCurrDmaPacket->appPriv; - -// configASSERT(pxNetworkBuffer != NULL); -// /* Free PBUF buffer as it is transmitted by DMA now */ -// vReleaseNetworkBufferAndDescriptor(pxNetworkBuffer); -// /* Return packet info to free pool */ -// EnetQueue_enq(&tx->freePktInfoQ, &pCurrDmaPacket->node); -// pCurrDmaPacket = (EnetDma_Pkt *)EnetQueue_deq(pPktQ); -// } - -// // TODO: take care of stats LWIP2ENETSTATS_ADDNUM(&tx->stats.freeAppPktEnq, packetCount); - -// return packetCount; -// } - static uint32_t EnetNetIF_prepTxPktQ(EnetNetIF_TxObj *tx, EnetDma_PktQ *pPktQ) {