updating the size of tx and rx frames inside memset REL.CORESDK.08.01.00.07
authorPotluri Krishna <x1082264@ti.com>
Tue, 12 Oct 2021 16:13:52 +0000 (21:43 +0530)
committerPotluri Krishna <x1082264@ti.com>
Tue, 12 Oct 2021 16:13:52 +0000 (21:43 +0530)
packages/ti/board/diag/enet_icssg/src/enet_icssg_test.c

index 87df07f1ba086834c97189c898999e8cb9deb0fd..0389c274bb56716783a7b67dcdebbe8e272418bb 100644 (file)
@@ -1329,8 +1329,8 @@ static uint32_t BoardDiag_EnetIg_Transmit(EnetIg_PerCtxt *txPerCtxt, EnetIg_PerC
         /* Dequeue one free TX Eth packet */
         txPktInfo = (EnetDma_Pkt *)EnetQueue_deq(&gEnetIg.txFreePktInfoQ);
 
-        memset(gEnetIg.txFrame, 0, sizeof(gEnetIg.txFrame));
-        memset(gEnetIg.rxFrame, 0, sizeof(gEnetIg.rxFrame));
+        memset(gEnetIg.txFrame, 0, BOARD_DIAG_ENETLPBK_TEST_PKT_LEN + sizeof(EthFrameHeader));
+        memset(gEnetIg.rxFrame, 0, BOARD_DIAG_ENETLPBK_TEST_PKT_LEN + sizeof(EthFrameHeader));
 
         while (NULL != txPktInfo)
         {