net/ice: fix tso tunnel setting to not take effect
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().
--- drivers/net/ice/ice_ethdev.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +5 -1
@@ -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
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")Signed-off-by Kaiwen Deng <[email protected]>--- drivers/net/ice/ice_ethdev.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/net/ice/ice_ethdev.c +0
-0@@ -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
-1RTE_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,
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
Signed-off-by Kaiwen Deng <[email protected]>--- drivers/net/ice/ice_ethdev.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/net/ice/ice_ethdev.c +0
-0@@ -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
-1RTE_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
PATCH v2 1/1 net/ice: fix tso tunnel setting to not take effect
In reply to Kaiwen DengThe 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
--- 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
@@ -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
@@ -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
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 effectThe 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")Signed-off-by Kaiwen Deng <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
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
Signed-off-by Kaiwen Deng <[email protected]>Acked-by Qi Zhang <[email protected]>Applied to dpdk-next-net-intel.
As said by David in v1, 295968d17407 ("ethdev: add namespace") is not a cause. Removing while pulling.