Skip to contentSkip to conversation

net/iavf: fix TSO max segment size

PATCH In review Qi Zhang 2 participants 3 messages Mar 1, 2021 – Mar 26, 2021 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/iavf: fix TSO max segment size

According to Intel® AVF spec
(https://www.intel.com/content/dam/
www/public/us/en/documents/product-specifications/ ethernet-adaptive-virtual-function-hardware-spec.pdf) section 2.2.2.3:
The max segment size(MSS) of TSO should not be set lower than 88.

Fixes a2b29a7733ef ("net/avf: enable basic Rx Tx")
---
 drivers/net/iavf/iavf_rxtx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_rxtx.h +1 -1
index 922ddadad1..69979971fd 100644
@@ -34,7 +34,7 @@
 #define DEFAULT_TX_RS_THRESH     32
 #define DEFAULT_TX_FREE_THRESH   32
 
-#define IAVF_MIN_TSO_MSS          256
+#define IAVF_MIN_TSO_MSS          88
 #define IAVF_MAX_TSO_MSS          9668
 #define IAVF_TSO_MAX_SEG          UINT8_MAX
 #define IAVF_TX_MAX_MTU_SEG       8
Signature · 1 line
2.26.2
Acked-by on v1 1/1
#1 lore raw
Quoted 40 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, March 1, 2021 3:57 PM
To: Wu, Jingjing <[email protected]>
Cc: Anantharam, Arjun <[email protected]>; Miskell, Timothy <[email protected]>; Xing, Beilei <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/iavf: fix TSO max segment size

According to Intel® AVF spec
(https://www.intel.com/content/dam/
www/public/us/en/documents/product-specifications/ ethernet-adaptive-virtual-function-hardware-spec.pdf) section 2.2.2.3:
The max segment size(MSS) of TSO should not be set lower than 88.

Fixes a2b29a7733ef ("net/avf: enable basic Rx Tx")
---
 drivers/net/iavf/iavf_rxtx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/iavf/iavf_rxtx.h index renamed from drivers/net/iavf/iavf_rxtx.h +0 -0

922ddadad1..69979971fd 100644

drivers/net/iavf/iavf_rxtx.h +1 -2
@@ -34,7 +34,7 @@
 #define DEFAULT_TX_RS_THRESH     32
 #define DEFAULT_TX_FREE_THRESH   32
 
-#define IAVF_MIN_TSO_MSS          256
+#define IAVF_MIN_TSO_MSS          88
 #define IAVF_MAX_TSO_MSS          9668
 #define IAVF_TSO_MAX_SEG          UINT8_MAX
 #define IAVF_TX_MAX_MTU_SEG       8
--
Quoted 1 line

2.26.2

author Applied
#2 lore raw
Quoted 44 lines

-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Friday, March 26, 2021 9:28 AM
To: Zhang, Qi Z <[email protected]>; Wu, Jingjing <[email protected]>
Cc: Anantharam, Arjun <[email protected]>; Miskell, Timothy <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH] net/iavf: fix TSO max segment size

Quoted 32 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Monday, March 1, 2021 3:57 PM
To: Wu, Jingjing <[email protected]>
Cc: Anantharam, Arjun <[email protected]>; Miskell, Timothy <[email protected]>; Xing, Beilei <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/iavf: fix TSO max segment size

According to Intel® AVF spec
(https://www.intel.com/content/dam/
www/public/us/en/documents/product-specifications/ ethernet-adaptive-virtual-function-hardware-spec.pdf) section 2.2.2.3:
The max segment size(MSS) of TSO should not be set lower than 88.

Fixes a2b29a7733ef ("net/avf: enable basic Rx Tx")
---
 drivers/net/iavf/iavf_rxtx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/net/iavf/iavf_rxtx.h index 922ddadad1..69979971fd 100644

drivers/net/iavf/iavf_rxtx.h +0 -0
@@ -34,7 +34,7 @@
 #define DEFAULT_TX_RS_THRESH     32
 #define DEFAULT_TX_FREE_THRESH   32
 
Quoted 10 lines
Quoted 7 lines
drivers/net/iavf/iavf_rxtx.h +1 -2
-#define IAVF_MIN_TSO_MSS          256
+#define IAVF_MIN_TSO_MSS          88
 #define IAVF_MAX_TSO_MSS          9668
 #define IAVF_TSO_MAX_SEG          UINT8_MAX
 #define IAVF_TX_MAX_MTU_SEG       8
--

2.26.2

Applied to dpdk-next-net-intel.

Thanks
Qi