[PATCH 09/31] net/stack: rtskb: increase buffer size

Jean-Baptiste Tr├ędez jean-baptiste.tredez at alstefgroup.com
Tue May 11 18:05:13 CEST 2021


From: Gilles Chanteperdrix <gilles.chanteperdrix at xenomai.org>

The largest packet size an IGB device can handle is 2k. Since we have
a fixed buffer size, we need to accomodate for this.

Signed-off-by: Philippe Gerum <rpm at xenomai.org>
---
 kernel/drivers/net/stack/include/rtskb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/drivers/net/stack/include/rtskb.h b/kernel/drivers/net/stack/include/rtskb.h
index 4920b3916..8f0294fe3 100644
--- a/kernel/drivers/net/stack/include/rtskb.h
+++ b/kernel/drivers/net/stack/include/rtskb.h
@@ -269,7 +269,7 @@ struct rtskb_prio_queue {
 #define DEFAULT_SOCKET_RTSKBS 16 /* default number of rtskb's in socket pools */
 
 #define ALIGN_RTSKB_STRUCT_LEN SKB_DATA_ALIGN(sizeof(struct rtskb))
-#define RTSKB_SIZE 1544 /* maximum needed by pcnet32-rt */
+#define RTSKB_SIZE                  (2048 + NET_IP_ALIGN)    /* maximum needed by igb */
 
 extern unsigned int rtskb_pools; /* current number of rtskb pools      */
 extern unsigned int rtskb_pools_max; /* maximum number of rtskb pools      */
-- 
2.17.1




More information about the Xenomai mailing list