Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,9 @@ static BaseType_t prvNetworkInterfaceInput( void )

#if ( ipconfigZERO_COPY_RX_DRIVER != 0 )
{
/* Reserve the maximum length for the next reception. */
uxLength = ETH_RX_BUF_SIZE;
/* Request the usable Ethernet payload area, excluding the descriptor
* metadata stored in front of pucEthernetBuffer. */
uxLength = ETH_RX_BUF_SIZE - ipBUFFER_PADDING;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds like a good change, thank you.

The sizeof of the RX buffer is usually set at :

#define ETH_RX_BUF_SIZE     1536U

because it has a great alignment ( 0x600 ).

@AniruddhaKanhere @kstribrnAmzn Can you please check this PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course!


if( data_buffer.buffer != NULL )
{
Expand Down