Skip to contentSkip to conversation

net/ice: fix tso tunnel setting to not take effect

PATCH Superseded Kaiwen Deng 5 participants 6 messages Nov 24, 2023 – Jan 22, 2024 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: fix tso tunnel setting to not take effect

The Tx offload capabilities of ICE ethdev doesn't include tso tunnel, which will result in tso tunnel setting to not take effect.

This commit will add tso tunnel capabilities in ice_dev_info_get().

Fixes 295968d17407 ("ethdev: add namespace")
---
 drivers/net/ice/ice_ethdev.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +5 -1
index 3ccba4db80..fbc957fcd8 100644
@@ -3876,7 +3876,11 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 			RTE_ETH_TX_OFFLOAD_TCP_CKSUM |
 			RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |
 			RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |
-			RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM;
+			RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM |
+			RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |
+			RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |
+			RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO |
+			RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO;
 		dev_info->flow_type_rss_offloads |= ICE_RSS_OFFLOAD_ALL;
 	}
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

please add Bugzilla ID

Quoted 21 lines · Kaiwen Deng

The Tx offload capabilities of ICE ethdev doesn't include tso tunnel, which will result in tso tunnel setting to not take effect.

This commit will add tso tunnel capabilities in ice_dev_info_get().

Fixes 295968d17407 ("ethdev: add namespace")
---
  drivers/net/ice/ice_ethdev.c | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +0 -0
index 3ccba4db80..fbc957fcd8 100644
@@ -3876,7 +3876,11 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
  			RTE_ETH_TX_OFFLOAD_TCP_CKSUM |
  			RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |

drivers/net/ice/ice_ethdev.c ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) · line 3886

Quoted 10 lines
drivers/net/ice/ice_ethdev.c +5 -1
  			RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |
-			RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM;
+			RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM |
+			RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |
+			RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |
+			RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO |
+			RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO;
  		dev_info->flow_type_rss_offloads |= ICE_RSS_OFFLOAD_ALL;
  	}
 

correct,

#2 lore raw
In reply to Kaiwen Deng
Quoted 8 lines · Kaiwen Deng

The Tx offload capabilities of ICE ethdev doesn't include tso tunnel, which will result in tso tunnel setting to not take effect.

This commit will add tso tunnel capabilities in ice_dev_info_get().

Fixes 295968d17407 ("ethdev: add namespace")

This Fixes: tag is wrong.

Quoted 13 lines
---
 drivers/net/ice/ice_ethdev.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +0 -0
index 3ccba4db80..fbc957fcd8 100644
@@ -3876,7 +3876,11 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
                        RTE_ETH_TX_OFFLOAD_TCP_CKSUM |

drivers/net/ice/ice_ethdev.c ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) · line 3885

Quoted 10 lines
drivers/net/ice/ice_ethdev.c +5 -1
                        RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |
                        RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |
-                       RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM;
+                       RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM |
+                       RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |
+                       RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |
+                       RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO |
+                       RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO;
                dev_info->flow_type_rss_offloads |= ICE_RSS_OFFLOAD_ALL;
        }

Is this tunnel + tso feature supported with vector drivers?

Is there some documentation to update to reflect this addition?

Signature · 1 line
David Marchand
#3 lore raw

PATCH v2 1/1 net/ice: fix tso tunnel setting to not take effect

In reply to Kaiwen Deng

The Tx offload capabilities of ICE ethdev doesn't include tso tunnel, which will result in tso tunnel setting to not take effect.

The patch adds tunnel tso offload to ICE_TX_NO_VECTOR_FLAGS.

This commit will add tso tunnel capabilities in ice_dev_info_get().

Bugzilla ID: 1327

Fixes d852fec1be63 ("net/ice: fix Tx offload path choice")
Fixes 295968d17407 ("ethdev: add namespace")
---
 drivers/net/ice/ice_ethdev.c          | 6 +++++-
 drivers/net/ice/ice_rxtx_vec_common.h | 4 ++++
 2 files changed, 9 insertions(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +5 -1
index 3ccba4db80..fbc957fcd8 100644
@@ -3876,7 +3876,11 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 			RTE_ETH_TX_OFFLOAD_TCP_CKSUM |
 			RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |
 			RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |
-			RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM;
+			RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM |
+			RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |
+			RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |
+			RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO |
+			RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO;
 		dev_info->flow_type_rss_offloads |= ICE_RSS_OFFLOAD_ALL;
 	}
 
drivers/net/ice/ice_rxtx_vec_common.h +4 -0
index 55840cf170..4b73465af5 100644
@@ -251,6 +251,10 @@ ice_rxq_vec_setup_default(struct ice_rx_queue *rxq)
 		RTE_ETH_TX_OFFLOAD_MULTI_SEGS |		\
 		RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |	\
 		RTE_ETH_TX_OFFLOAD_TCP_TSO |	\
+		RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |    \
+		RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |    \
+		RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO |    \
+		RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO |    \
 		RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM)
 
 #define ICE_TX_VECTOR_OFFLOAD (				\
Signature · 1 line
2.34.1
Acked-by on v2 1/1 Applied
#4 lore raw
Quoted 20 lines

-----Original Message-----
From: Deng, KaiwenX <[email protected]>
Sent: Thursday, December 7, 2023 10:31 AM
To: [email protected]
Cc: [email protected]; Yang, Qiming <[email protected]>; Zhou, YidingX <[email protected]>; Deng, KaiwenX <[email protected]>; Zhang, Qi Z <[email protected]>; Ting Xu <[email protected]>; Kevin Liu <[email protected]>; Ajit Khaparde <[email protected]>; Andrew Rybchenko <[email protected]>; Jerin Jacob <[email protected]>; Hemant Agrawal <[email protected]>; Somnath Kotur <[email protected]>
Subject: [PATCH v2] net/ice: fix tso tunnel setting to not take effect

The Tx offload capabilities of ICE ethdev doesn't include tso tunnel, which will result in tso tunnel setting to not take effect.

The patch adds tunnel tso offload to ICE_TX_NO_VECTOR_FLAGS.

Quoted 8 lines

This commit will add tso tunnel capabilities in ice_dev_info_get().

Bugzilla ID: 1327

Fixes d852fec1be63 ("net/ice: fix Tx offload path choice")
Fixes 295968d17407 ("ethdev: add namespace")

Applied to dpdk-next-net-intel.

Thanks
Qi

#5 lore raw
Quoted 12 lines
Quoted 12 lines

The Tx offload capabilities of ICE ethdev doesn't include tso tunnel, which will result in tso tunnel setting to not take effect.

The patch adds tunnel tso offload to ICE_TX_NO_VECTOR_FLAGS.

This commit will add tso tunnel capabilities in ice_dev_info_get().

Bugzilla ID: 1327

Fixes d852fec1be63 ("net/ice: fix Tx offload path choice")
Fixes 295968d17407 ("ethdev: add namespace")
Quoted 5 lines
Quoted 1 line

Applied to dpdk-next-net-intel.

As said by David in v1, 295968d17407 ("ethdev: add namespace") is not a cause. Removing while pulling.