Skip to contentSkip to conversation

net/ixgbe: fix missing suppport of multi-segs offloading

PATCH Applied Wei Dai 4 participants 4 messages Apr 17, 2018 Network drivers

lore
Share & tools
lore

Wei Dai

author
#0 lore raw

PATCH 1/1 net/ixgbe: fix missing suppport of multi-segs offloading

This patch adds missing supported Tx multi-segs offloading.

Fixes 51215925a32f ("net/ixgbe: convert to new Tx offloads API")
---
 drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ixgbe/ixgbe_rxtx.c +2 -1
index 7511e18..aed3f5a 100644
@@ -2429,7 +2429,8 @@ ixgbe_get_tx_port_offloads(struct rte_eth_dev *dev)
 		DEV_TX_OFFLOAD_UDP_CKSUM   |
 		DEV_TX_OFFLOAD_TCP_CKSUM   |
 		DEV_TX_OFFLOAD_SCTP_CKSUM  |
-		DEV_TX_OFFLOAD_TCP_TSO;
+		DEV_TX_OFFLOAD_TCP_TSO     |
+		DEV_TX_OFFLOAD_MULTI_SEGS;
 
 	if (hw->mac.type == ixgbe_mac_82599EB ||
 	    hw->mac.type == ixgbe_mac_X540)
Signature · 1 line
2.7.5
Tested-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Dai, Wei
Sent: Tuesday, April 17, 2018 3:44 PM
To: Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>; Yao, Lei A <[email protected]>
Cc: [email protected]; Dai, Wei <[email protected]>; [email protected]
Subject: [PATCH] net/ixgbe: fix missing suppport of multi-segs offloading

Quoted 6 lines

This patch adds missing supported Tx multi-segs offloading.

Fixes 51215925a32f ("net/ixgbe: convert to new Tx offloads API")

This patch can fix the vhost-sample launch issue, the virtio VM2VM Iperf test can pass with this patch on ixgbe NIC.

Quoted 21 lines
---
 drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ixgbe/ixgbe_rxtx.c +2 -1
index 7511e18..aed3f5a 100644
@@ -2429,7 +2429,8 @@ ixgbe_get_tx_port_offloads(struct rte_eth_dev
 *dev)
 		DEV_TX_OFFLOAD_UDP_CKSUM   |
 		DEV_TX_OFFLOAD_TCP_CKSUM   |
 		DEV_TX_OFFLOAD_SCTP_CKSUM  |
-		DEV_TX_OFFLOAD_TCP_TSO;
+		DEV_TX_OFFLOAD_TCP_TSO     |
+		DEV_TX_OFFLOAD_MULTI_SEGS;
 
 	if (hw->mac.type == ixgbe_mac_82599EB ||

hw->mac.type == ixgbe_mac_X540)
--
2.7.5

Acked-by on v1 1/1
#2 lore raw
In reply to Wei Dai
Quoted 34 lines

-----Original Message-----
From: Dai, Wei
Sent: Tuesday, April 17, 2018 8:44 AM
To: Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>; Yao, Lei A <[email protected]>
Cc: [email protected]; Dai, Wei <[email protected]>; [email protected]
Subject: [PATCH] net/ixgbe: fix missing suppport of multi-segs offloading

This patch adds missing supported Tx multi-segs offloading.

Fixes 51215925a32f ("net/ixgbe: convert to new Tx offloads API")
---
 drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ixgbe/ixgbe_rxtx.c +2 -2
index 7511e18..aed3f5a 100644
@@ -2429,7 +2429,8 @@ ixgbe_get_tx_port_offloads(struct rte_eth_dev *dev)
 		DEV_TX_OFFLOAD_UDP_CKSUM   |
 		DEV_TX_OFFLOAD_TCP_CKSUM   |
 		DEV_TX_OFFLOAD_SCTP_CKSUM  |
-		DEV_TX_OFFLOAD_TCP_TSO;
+		DEV_TX_OFFLOAD_TCP_TSO     |
+		DEV_TX_OFFLOAD_MULTI_SEGS;
 
 	if (hw->mac.type == ixgbe_mac_82599EB ||
 	    hw->mac.type == ixgbe_mac_X540)
--
Quoted 1 line

2.7.5

Applied
#3 lore raw
Quoted 44 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Ananyev, Konstantin
Sent: Tuesday, April 17, 2018 5:43 PM
To: Dai, Wei; Lu, Wenzhuo; Yao, Lei A
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: fix missing suppport of multi-segs offloading

drivers/net/ixgbe/ixgbe_rxtx.c ixgbe_get_tx_port_offloads(struct rte_eth_dev

Quoted 24 lines

-----Original Message-----
From: Dai, Wei
Sent: Tuesday, April 17, 2018 8:44 AM
To: Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>; Yao, Lei A <[email protected]>
Cc: [email protected]; Dai, Wei <[email protected]>; [email protected]
Subject: [PATCH] net/ixgbe: fix missing suppport of multi-segs offloading

This patch adds missing supported Tx multi-segs offloading.

Fixes 51215925a32f ("net/ixgbe: convert to new Tx offloads API")
---
 drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/net/ixgbe/ixgbe_rxtx.c index 7511e18..aed3f5a 100644

drivers/net/ixgbe/ixgbe_rxtx.c +0 -0
@@ -2429,7 +2429,8 @@ ixgbe_get_tx_port_offloads(struct rte_eth_dev

*dev)

Quoted 7 lines
drivers/net/ixgbe/ixgbe_rxtx.c +2 -1
 		DEV_TX_OFFLOAD_UDP_CKSUM   |
 		DEV_TX_OFFLOAD_TCP_CKSUM   |
 		DEV_TX_OFFLOAD_SCTP_CKSUM  |
-		DEV_TX_OFFLOAD_TCP_TSO;
+		DEV_TX_OFFLOAD_TCP_TSO     |
+		DEV_TX_OFFLOAD_MULTI_SEGS;
 
Quoted 6 lines
Quoted 4 lines
drivers/net/ixgbe/ixgbe_rxtx.c +0 -1
 	if (hw->mac.type == ixgbe_mac_82599EB ||
 	    hw->mac.type == ixgbe_mac_X540)
--

2.7.5

Applied to dpdk-next-net-intel, thanks!

/Helin