[rtems-libbsd commit] if_dwc: Increase DMA descriptor count
Sebastian Huber
sebh at rtems.org
Wed Apr 8 05:59:23 UTC 2015
Module: rtems-libbsd
Branch: master
Commit: ebc797fc841266df80dbf91af86bfcd646b4b79a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=ebc797fc841266df80dbf91af86bfcd646b4b79a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Apr 7 13:53:16 2015 +0200
if_dwc: Increase DMA descriptor count
This prevents some packet loss under heavy load conditions.
---
freebsd/sys/dev/dwc/if_dwc.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index 3caff4a..d043e8e 100644
--- a/freebsd/sys/dev/dwc/if_dwc.c
+++ b/freebsd/sys/dev/dwc/if_dwc.c
@@ -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 */
More information about the vc
mailing list