mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 02:32:54 +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
@@ -48,12 +48,12 @@
|
||||
* Pre-processor Definitions
|
||||
*****************************************************************************/
|
||||
|
||||
#if CONFIG_NET_E1000_TXDESC % 2 != 0
|
||||
# error CONFIG_NET_E1000_TXDESC must be multiple of 2
|
||||
#if CONFIG_NET_E1000_TXDESC % 8 != 0
|
||||
# error CONFIG_NET_E1000_TXDESC must be multiple of 8
|
||||
#endif
|
||||
|
||||
#if CONFIG_NET_E1000_RXDESC % 2 != 0
|
||||
# error CONFIG_NET_E1000_RXDESC must be multiple of 2
|
||||
#if CONFIG_NET_E1000_RXDESC % 8 != 0
|
||||
# error CONFIG_NET_E1000_RXDESC must be multiple of 8
|
||||
#endif
|
||||
|
||||
/* Packet buffer size */
|
||||
|
||||
@@ -48,12 +48,12 @@
|
||||
* Pre-processor Definitions
|
||||
*****************************************************************************/
|
||||
|
||||
#if CONFIG_NET_IGC_TXDESC % 2 != 0
|
||||
# error CONFIG_NET_IGC_TXDESC must be multiple of 2
|
||||
#if CONFIG_NET_IGC_TXDESC % 8 != 0
|
||||
# error CONFIG_NET_IGC_TXDESC must be multiple of 8
|
||||
#endif
|
||||
|
||||
#if CONFIG_NET_IGC_RXDESC % 2 != 0
|
||||
# error CONFIG_NET_IGC_RXDESC must be multiple of 2
|
||||
#if CONFIG_NET_IGC_RXDESC % 8 != 0
|
||||
# error CONFIG_NET_IGC_RXDESC must be multiple of 8
|
||||
#endif
|
||||
|
||||
/* Packet buffer size */
|
||||
|
||||
Reference in New Issue
Block a user