[rtems-libbsd commit] ffec: Increase descriptor ring alignment
Sebastian Huber
sebh at rtems.org
Wed Sep 27 09:12:29 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: 1378632ad81676c3a69d8e4656c2b5765bac2bd1
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=1378632ad81676c3a69d8e4656c2b5765bac2bd1
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Sep 27 09:23:06 2017 +0200
ffec: Increase descriptor ring alignment
For optimal performance a 64-byte alignment is recommended.
---
freebsd/sys/dev/ffec/if_ffecreg.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/freebsd/sys/dev/ffec/if_ffecreg.h b/freebsd/sys/dev/ffec/if_ffecreg.h
index bc44af3..6faa095 100644
--- a/freebsd/sys/dev/ffec/if_ffecreg.h
+++ b/freebsd/sys/dev/ffec/if_ffecreg.h
@@ -317,7 +317,7 @@ struct ffec_hwdesc
* The hardware imposes alignment restrictions on various objects involved in
* DMA transfers. These values are expressed in bytes (not bits).
*/
-#define FEC_DESC_RING_ALIGN 16
+#define FEC_DESC_RING_ALIGN 64
#define FEC_RXBUF_ALIGN 16
#define FEC_TXBUF_ALIGN 16
More information about the vc
mailing list