Skip to contentSkip to conversation

net/i40e: fix missing mbuf fast free offload

PATCH Applied Qi Zhang 3 participants 5 messages May 7, 2018 – May 11, 2018 Network drivers

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/i40e: fix missing mbuf fast free offload

Expose the missing mbuf fast free capability since i40 does support it.

Fixes 7497d3e2f777 ("net/i40e: convert to new Tx offloads API")
---
 drivers/net/i40e/i40e_ethdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_ethdev.c +4 -2
index 92ee6c5ae..e866c3081 100644
@@ -3301,7 +3301,7 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 		DEV_RX_OFFLOAD_VLAN_FILTER |
 		DEV_RX_OFFLOAD_JUMBO_FRAME;
 
-	dev_info->tx_queue_offload_capa = 0;
+	dev_info->tx_queue_offload_capa = DEV_TX_OFFLOAD_MBUF_FAST_FREE;
 	dev_info->tx_offload_capa =
 		DEV_TX_OFFLOAD_VLAN_INSERT |
 		DEV_TX_OFFLOAD_QINQ_INSERT |
@@ -3314,7 +3314,9 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 		DEV_TX_OFFLOAD_VXLAN_TNL_TSO |
 		DEV_TX_OFFLOAD_GRE_TNL_TSO |
 		DEV_TX_OFFLOAD_IPIP_TNL_TSO |
-		DEV_TX_OFFLOAD_GENEVE_TNL_TSO;
+		DEV_TX_OFFLOAD_GENEVE_TNL_TSO |
+		dev_info->tx_queue_offload_capa;
+
 	dev_info->dev_capa =
 		RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |
 		RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;
Signature · 1 line
2.13.6
Acked-by on v1 1/1
#1 lore raw
Quoted 45 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Monday, May 7, 2018 9:26 AM
To: Yigit, Ferruh <[email protected]>
Cc: Xing, Beilei <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/i40e: fix missing mbuf fast free offload

Expose the missing mbuf fast free capability since i40 does support it.

Fixes 7497d3e2f777 ("net/i40e: convert to new Tx offloads API")
---
 drivers/net/i40e/i40e_ethdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_ethdev.c +1 -1
index 92ee6c5ae..e866c3081 100644
@@ -3301,7 +3301,7 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct
 rte_eth_dev_info *dev_info)
 		DEV_RX_OFFLOAD_VLAN_FILTER |
 		DEV_RX_OFFLOAD_JUMBO_FRAME;
 
-	dev_info->tx_queue_offload_capa = 0;
+	dev_info->tx_queue_offload_capa =
 DEV_TX_OFFLOAD_MBUF_FAST_FREE;
 	dev_info->tx_offload_capa =
drivers/net/i40e/i40e_ethdev.c +3 -1
 		DEV_TX_OFFLOAD_VLAN_INSERT |
 		DEV_TX_OFFLOAD_QINQ_INSERT |
@@ -3314,7 +3314,9 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct
 rte_eth_dev_info *dev_info)
 		DEV_TX_OFFLOAD_VXLAN_TNL_TSO |
 		DEV_TX_OFFLOAD_GRE_TNL_TSO |
 		DEV_TX_OFFLOAD_IPIP_TNL_TSO |
-		DEV_TX_OFFLOAD_GENEVE_TNL_TSO;
+		DEV_TX_OFFLOAD_GENEVE_TNL_TSO |
+		dev_info->tx_queue_offload_capa;
+
 	dev_info->dev_capa =
 		RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |
Quoted 3 lines

RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;
--
2.13.6

Applied
#2 lore raw
Quoted 10 lines · Beilei
Quoted 10 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Monday, May 7, 2018 9:26 AM
To: Yigit, Ferruh <[email protected]>
Cc: Xing, Beilei <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/i40e: fix missing mbuf fast free offload

Quoted 8 lines
Quoted 5 lines

Expose the missing mbuf fast free capability since i40 does support it.

Fixes 7497d3e2f777 ("net/i40e: convert to new Tx offloads API")

Applied to dpdk-next-net/master, thanks.

#3 lore raw
Quoted 13 lines · Ferruh Yigit
Quoted 12 lines · Beilei
Quoted 12 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Monday, May 7, 2018 9:26 AM
To: Yigit, Ferruh <[email protected]>
Cc: Xing, Beilei <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/i40e: fix missing mbuf fast free offload

Expose the missing mbuf fast free capability since i40 does support it.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Fixes 7497d3e2f777 ("net/i40e: convert to new Tx offloads API")

Applied to dpdk-next-net/master, thanks.

Hi Beilei, Qi,

This patch is preventing i40e to use Tx avx2 fast path and cause a performance drop, you need to allow this offload in Tx data path selection logic.

Dropping this patch from next-net, updated patch status in patchwork, please send a new version.

Thanks,
ferruh

#4 lore raw
Quoted 28 lines

-----Original Message-----
From: Yigit, Ferruh
Sent: Friday, May 11, 2018 6:10 AM
To: Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix missing mbuf fast free offload

Quoted 18 lines · Ferruh Yigit
Quoted 17 lines · Beilei
Quoted 15 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Monday, May 7, 2018 9:26 AM
To: Yigit, Ferruh <[email protected]>
Cc: Xing, Beilei <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/i40e: fix missing mbuf fast free offload

Expose the missing mbuf fast free capability since i40 does support it.

Fixes 7497d3e2f777 ("net/i40e: convert to new Tx offloads API")
Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Applied to dpdk-next-net/master, thanks.

Hi Beilei, Qi,

This patch is preventing i40e to use Tx avx2 fast path and cause a performance drop, you need to allow this offload in Tx data path selection logic.

OK, I missed that, will fix. thanks.

Quoted 6 lines

Dropping this patch from next-net, updated patch status in patchwork, please send a new version.

Thanks,
ferruh