Skip to content

Commit

Permalink
Removing old code TX notify
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-josi-aws committed Dec 9, 2023
1 parent fe178b5 commit 569f30b
Showing 1 changed file with 0 additions and 61 deletions.
61 changes: 0 additions & 61 deletions source/portable/NetworkInterface/AM243x_v9/Enet_NetIF.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 569f30b

Please sign in to comment.