Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

LF-2(8) Number of transmit descriptors. For DMA-based devices, this value is utilized by the device driver during initialization in order to allocate a fixed-size pool of transmit descriptors to be used by the device. For best performance, the number of transmit descriptors should be equal to the number of small, plus the number of large transmit buffers configured for the device. Non DMA based devices may configure this value to zero.

...

Anchor
Configuring Window sizes
Configuring Window sizes
Configuring window sizes

Receive and transmit queue size must be properly configured to optimize performance. It represents the number of bytes that can be queued by one socket. It's important that all socket are not able to queue more data than what the device can hold in its buffers. The size should be also a multiple of the maximum segment size (MSS) to optimize performance. UDP MSS is 1470 and TCP MSS is 1460. 

...

RX and TX queue size can be reduce at run time using socket option API (NetTCP_ConnCfgRxWinSize()NetTCP_ConnCfgTxWinSize()).

the following listing shows a calculation example: 

...