mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
drivers/net/{e1000|igc}: align descriptors to 8
A descriptor ring length must be aligned to 128, one descriptor is 16B length, so we can provide this condition with the appropriate number of descriptors Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
5a9530855c
commit
bba1741421
+4
-4
@@ -48,12 +48,12 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#if CONFIG_NET_E1000_TXDESC % 2 != 0
|
#if CONFIG_NET_E1000_TXDESC % 8 != 0
|
||||||
# error CONFIG_NET_E1000_TXDESC must be multiple of 2
|
# error CONFIG_NET_E1000_TXDESC must be multiple of 8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_NET_E1000_RXDESC % 2 != 0
|
#if CONFIG_NET_E1000_RXDESC % 8 != 0
|
||||||
# error CONFIG_NET_E1000_RXDESC must be multiple of 2
|
# error CONFIG_NET_E1000_RXDESC must be multiple of 8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Packet buffer size */
|
/* Packet buffer size */
|
||||||
|
|||||||
+4
-4
@@ -48,12 +48,12 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#if CONFIG_NET_IGC_TXDESC % 2 != 0
|
#if CONFIG_NET_IGC_TXDESC % 8 != 0
|
||||||
# error CONFIG_NET_IGC_TXDESC must be multiple of 2
|
# error CONFIG_NET_IGC_TXDESC must be multiple of 8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_NET_IGC_RXDESC % 2 != 0
|
#if CONFIG_NET_IGC_RXDESC % 8 != 0
|
||||||
# error CONFIG_NET_IGC_RXDESC must be multiple of 2
|
# error CONFIG_NET_IGC_RXDESC must be multiple of 8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Packet buffer size */
|
/* Packet buffer size */
|
||||||
|
|||||||
Reference in New Issue
Block a user