mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-05 03:05:49 +08:00
if_dwc: Increase DMA descriptor count
This prevents some packet loss under heavy load conditions.
This commit is contained in:
parent
fb7a5329b0
commit
ebc797fc84
@ -153,14 +153,10 @@ struct dwc_hwdesc
|
||||
#ifndef __rtems__
|
||||
#define RX_DESC_COUNT 1024
|
||||
#else /* __rtems__ */
|
||||
#define RX_DESC_COUNT 64
|
||||
#define RX_DESC_COUNT 256
|
||||
#endif /* __rtems__ */
|
||||
#define RX_DESC_SIZE (sizeof(struct dwc_hwdesc) * RX_DESC_COUNT)
|
||||
#ifndef __rtems__
|
||||
#define TX_DESC_COUNT 1024
|
||||
#else /* __rtems__ */
|
||||
#define TX_DESC_COUNT 64
|
||||
#endif /* __rtems__ */
|
||||
#define TX_DESC_SIZE (sizeof(struct dwc_hwdesc) * TX_DESC_COUNT)
|
||||
#define TX_MAX_DMA_SEGS 8 /* maximum segs in a tx mbuf dma */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user