Skip to content

Commit 5ee0240

Browse files
committed
Fix inconsistent definition for dmaRX_TX_BUFFER_SIZE for Xilinx ports
1 parent 0875bb7 commit 5ee0240

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/portable/NetworkInterface/Zynq/x_emacpsif_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
#endif
9090
#define TX_OFFSET ipconfigPACKET_FILLER_SIZE
9191

92-
#define dmaRX_TX_BUFFER_SIZE 1536
92+
#define dmaRX_TX_BUFFER_SIZE ( 1536 - ipBUFFER_PADDING )
9393

9494
/* Defined in NetworkInterface.c */
9595
extern TaskHandle_t xEMACTaskHandles[ XPAR_XEMACPS_NUM_INSTANCES ];

source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@
8585
#endif /* ( ipconfigNETWORK_MTU > 1526 ) */
8686

8787
#if ( USE_JUMBO_FRAMES == 1 )
88-
#define dmaRX_TX_BUFFER_SIZE 10240
88+
#define dmaRX_TX_BUFFER_SIZE ( 10240 - ipBUFFER_PADDING )
8989
#else
90-
#define dmaRX_TX_BUFFER_SIZE 1536
90+
#define dmaRX_TX_BUFFER_SIZE ( 1536 - ipBUFFER_PADDING )
9191
#endif /* ( USE_JUMBO_FRAMES == 1 ) */
9292

9393
#if ( ipconfigULTRASCALE == 1 )

0 commit comments

Comments
 (0)