net/ixgbe: fix missing suppport of multi-segs offloading
PATCH 1/1 net/ixgbe: fix missing suppport of multi-segs offloading
This patch adds missing supported Tx multi-segs offloading.
--- drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ixgbe/ixgbe_rxtx.c +2 -1
@@ -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
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")Signed-off-by Wei Dai <[email protected]>
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@@ -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
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 offloadingThis patch adds missing supported Tx multi-segs offloading.
Fixes 51215925a32f ("net/ixgbe: convert to new Tx offloads API")Signed-off-by Wei Dai <[email protected]>--- drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/net/ixgbe/ixgbe_rxtx.c +2
-2@@ -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
Zhang, Helin
AppliedQuoted 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 offloadingdrivers/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 offloadingThis patch adds missing supported Tx multi-segs offloading.
Fixes 51215925a32f ("net/ixgbe: convert to new Tx offloads API")Signed-off-by Wei Dai <[email protected]>--- drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/net/ixgbe/ixgbe_rxtx.cindex 7511e18..aed3f5a 100644drivers/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
-1DEV_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
-1if (hw->mac.type == ixgbe_mac_82599EB || hw->mac.type == ixgbe_mac_X540) --2.7.5
Applied to dpdk-next-net-intel, thanks!
/Helin