This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit bba1741421b2d9759d1e580348156d4135606bf8
Author: p-szafonimateusz <p-szafonimate...@xiaomi.com>
AuthorDate: Tue Jun 10 14:41:51 2025 +0200

    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-szafonimate...@xiaomi.com>
---
 drivers/net/e1000.c | 8 ++++----
 drivers/net/igc.c   | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 85ab64dc2a..49ab1bdc61 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -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 */
diff --git a/drivers/net/igc.c b/drivers/net/igc.c
index 74e072ee4b..a1d9a4a68e 100644
--- a/drivers/net/igc.c
+++ b/drivers/net/igc.c
@@ -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 */

Reply via email to