Add VXLAN TSO function
cover Add VXLAN TSO function
V0: The RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO flag is added to support the VXLAN TSO function
V1: Add sign-off in the commit message
Feifei Wang (1):
net/hinic3: Add VXLAN TSO function
drivers/net/hinic3/hinic3_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.47.0.windows.2
PATCH 1/1 net/hinic3: Add VXLAN TSO function
The RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO flag is added to support the VXLAN TSO function
--- drivers/net/hinic3/hinic3_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/hinic3/hinic3_ethdev.c +1 -1
@@ -696,7 +696,7 @@ hinic3_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)RTE_ETH_TX_OFFLOAD_VLAN_INSERT |RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_UDP_CKSUM |RTE_ETH_TX_OFFLOAD_TCP_CKSUM |RTE_ETH_TX_OFFLOAD_SCTP_CKSUM | -RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM | +RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |RTE_ETH_TX_OFFLOAD_TCP_TSO |RTE_ETH_TX_OFFLOAD_MULTI_SEGS ;if (nic_dev->feature_cap &NIC_F_HTN_CMDQ )hinic3_dev_tnl_tso_support (info, nic_dev);
Signature · 1 line
2.47.0.windows.2
Re: [V1 1/1] net/hinic3: Add VXLAN TSO function
Quoted 4 lines · On Wed, 20 May 2026 14:58:15 +0800 Feifei Wang <[email protected]> wrote:
The
RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSOflag is added to support the VXLAN TSO functionSigned-off-by Feifei Wang <[email protected]>---
You need to do more than just advertise the capability to get the driver to actually work right.
AI explanation:
Error: VXLAN TSO is advertised unconditionally but the underlying hardware feature is not. The patch adds RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO to the unconditional tx_offload_capa assignment in hinic3_dev_infos_get(), but the Tx path in drivers/net/hinic3/hinic3_tx.c:306-313 rejects every VXLAN tunnel mbuf when the hardware does not have NIC_F_VXLAN_OFFLOAD:
回复: [V1 1/1] net/hinic3: Add VXLAN TSO function
Quoted 21 lines
-----邮件原件-----
发件人: Stephen Hemminger <[email protected]> 发送时间: 2026年5月20日 23:07
收件人: Feifei Wang <[email protected]>
抄送: [email protected]; wangfeifei (J) <[email protected]> 主题: Re: [V1 1/1] net/hinic3: Add VXLAN TSO functionQuoted 5 lines · On Wed, 20 May 2026 14:58:15 +0800 Feifei Wang <[email protected]> wrote:
The
RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSOflag is added to support the VXLAN TSO functionSigned-off-by Feifei Wang <[email protected]>---
You need to do more than just advertise the capability to get the driver to actually work right.
Quoted 7 lines
AI explanation:
Error: VXLAN TSO is advertised unconditionally but the underlying hardware feature is not. The patch adds
RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSOto the unconditionaltx_offload_capaassignment inhinic3_dev_infos_get(), but the Tx path in drivers/net/hinic3/hinic3_tx.c:306-313 rejects every VXLAN tunnel mbuf when the hardware does not haveNIC_F_VXLAN_OFFLOAD:
[Feifei] Thanks for your reviewing. Above comment is valuable, we ignore this. In the next version, we will change as below:
if (HINIC3_SUPPORT_VXLAN_OFFLOAD(nic_dev))
info->tx_offload_capa |= RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO
v2 cover net/hinic3: Fix VXLAN TSO issue
In reply to Feifei WangV1: The RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO flag is added to support the VXLAN TSO function
V2: Modify the commit information issue and supplement the commit information
Feifei Wang (1):
net/hinic3: Fix VXLAN TSO issue
drivers/net/hinic3/hinic3_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.47.0.windows.2
PATCH v2 1/1 net/hinic3: Fix VXLAN TSO issue
From: Feifei Wang <[email protected]>
VXLAN TSO lacks a flag bit, causing the processing function to determine that the hardware does not support it, leading to improper handling.
--- drivers/net/hinic3/hinic3_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/hinic3/hinic3_ethdev.c +1 -1
@@ -696,7 +696,7 @@ hinic3_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)RTE_ETH_TX_OFFLOAD_VLAN_INSERT |RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_UDP_CKSUM |RTE_ETH_TX_OFFLOAD_TCP_CKSUM |RTE_ETH_TX_OFFLOAD_SCTP_CKSUM | -RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM | +RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |RTE_ETH_TX_OFFLOAD_TCP_TSO |RTE_ETH_TX_OFFLOAD_MULTI_SEGS ;if (nic_dev->feature_cap &NIC_F_HTN_CMDQ )hinic3_dev_tnl_tso_support (info, nic_dev);
Signature · 1 line
2.47.0.windows.2
v3 cover net/hinic3: Fix VXLAN TSO issue
In reply to Feifei Wangv1: The RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO flag is added to support the VXLAN TSO function
v2: Modify the commit information issue and supplement the commit information
v3: Revise review comments. First, deterine whether the hardware supports it, then add the flag bit.
Feifei Wang (1):
net/hinic3: Fix VXLAN TSO issue
drivers/net/hinic3/hinic3_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.47.0.windows.2
PATCH v3 1/1 net/hinic3: Fix VXLAN TSO issue
From: Feifei Wang <[email protected]>
VXLAN TSO lacks a flag bit, causing the processing function to determine that the hardware does not support it, leading to improper handling.
--- drivers/net/hinic3/hinic3_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/hinic3/hinic3_ethdev.c +2 -1
@@ -652,6 +652,8 @@ hinic3_dev_configure(struct rte_eth_dev *dev)static void hinic3_dev_tnl_tso_support (struct rte_eth_dev_info *info,struct hinic3_nic_dev *nic_dev) { +if (HINIC3_SUPPORT_VXLAN_OFFLOAD (nic_dev)) + info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO ;if (HINIC3_SUPPORT_GENEVE_OFFLOAD (nic_dev)) info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO ;if (HINIC3_SUPPORT_IPXIP_OFFLOAD (nic_dev))
@@ -698,7 +700,6 @@ hinic3_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_TCP_TSO |RTE_ETH_TX_OFFLOAD_MULTI_SEGS ; -if (nic_dev->feature_cap &NIC_F_HTN_CMDQ )hinic3_dev_tnl_tso_support (info, nic_dev); info->hash_key_size =HINIC3_RSS_KEY_SIZE ;
Signature · 1 line
2.47.0.windows.2
v4 cover net/hinic3: Fix VXLAN TSO issue
In reply to Feifei Wangv1: The RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO flag is added to support the VXLAN TSO function
v2: Modify the commit information issue and supplement the commit information
v3: Revise review comments. First, deterine whether the hardware supports it, then add the flag bit
v4: Fix the compilation error caused by leading spaces
Feifei Wang (1):
net/hinic3: Fix VXLAN TSO issue
drivers/net/hinic3/hinic3_ethdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.47.0.windows.2
PATCH v4 1/1 net/hinic3: Fix VXLAN TSO issue
From: Feifei Wang <[email protected]>
VXLAN TSO lacks a flag bit, causing the processing function to determine that the hardware does not support it, leading to improper handling.
--- drivers/net/hinic3/hinic3_ethdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/net/hinic3/hinic3_ethdev.c +4 -1
@@ -652,8 +652,12 @@ hinic3_dev_configure(struct rte_eth_dev *dev)static void hinic3_dev_tnl_tso_support (struct rte_eth_dev_info *info,struct hinic3_nic_dev *nic_dev) { +if (HINIC3_SUPPORT_VXLAN_OFFLOAD (nic_dev)) + info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO ; +if (HINIC3_SUPPORT_GENEVE_OFFLOAD (nic_dev)) info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO ; +if (HINIC3_SUPPORT_IPXIP_OFFLOAD (nic_dev)) info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO ; }
@@ -698,7 +702,6 @@ hinic3_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_TCP_TSO |RTE_ETH_TX_OFFLOAD_MULTI_SEGS ; -if (nic_dev->feature_cap &NIC_F_HTN_CMDQ )hinic3_dev_tnl_tso_support (info, nic_dev); info->hash_key_size =HINIC3_RSS_KEY_SIZE ;
Signature · 1 line
2.47.0.windows.2
Re: [v4 1/1] net/hinic3: Fix VXLAN TSO issue
Quoted 7 lines · On Tue, 26 May 2026 20:18:18 +0800 Feifei Wang <[email protected]> wrote:
From: Feifei Wang <[email protected]>
VXLAN TSO lacks a flag bit, causing the processing function to determine that the hardware does not support it, leading to improper handling.
Signed-off-by Feifei Wang <[email protected]>
If this is a bug fix, it needs Fixes: tag and should have Cc: [email protected]
Quoted 22 lines
--- drivers/net/hinic3/hinic3_ethdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/net/hinic3/hinic3_ethdev.c +4
-0@@ -652,8 +652,12 @@ hinic3_dev_configure(struct rte_eth_dev *dev)static void hinic3_dev_tnl_tso_support (struct rte_eth_dev_info *info,struct hinic3_nic_dev *nic_dev) { +if (HINIC3_SUPPORT_VXLAN_OFFLOAD (nic_dev)) + info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO ; +if (HINIC3_SUPPORT_GENEVE_OFFLOAD (nic_dev)) info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO ; +if (HINIC3_SUPPORT_IPXIP_OFFLOAD (nic_dev)) info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO ; }
drivers/net/hinic3/hinic3_ethdev.c hinic3_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info) · line 705
Quoted 5 lines
drivers/net/hinic3/hinic3_ethdev.c +0
-1@@ -698,7 +702,6 @@ hinic3_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_TCP_TSO |RTE_ETH_TX_OFFLOAD_MULTI_SEGS ; -if (nic_dev->feature_cap &NIC_F_HTN_CMDQ )hinic3_dev_tnl_tso_support (info, nic_dev);
If you remove the if here, then you need to fix indentation on the line below.
PATCH v5 1/1 net/hinic3: Fix VXLAN TSO issue
In reply to Feifei WangFrom: Feifei Wang <[email protected]>
VXLAN TSO lacks a flag bit, causing the processing function to determine that the hardware does not support it, leading to improper handling.
--- drivers/net/hinic3/hinic3_ethdev.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/net/hinic3/hinic3_ethdev.c +6 -2
@@ -652,8 +652,12 @@ hinic3_dev_configure(struct rte_eth_dev *dev)static void hinic3_dev_tnl_tso_support (struct rte_eth_dev_info *info,struct hinic3_nic_dev *nic_dev) { +if (HINIC3_SUPPORT_VXLAN_OFFLOAD (nic_dev)) + info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO ; +if (HINIC3_SUPPORT_GENEVE_OFFLOAD (nic_dev)) info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO ; +if (HINIC3_SUPPORT_IPXIP_OFFLOAD (nic_dev)) info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO ; }
@@ -698,8 +702,8 @@ hinic3_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_TCP_TSO |RTE_ETH_TX_OFFLOAD_MULTI_SEGS ; -if (nic_dev->feature_cap &NIC_F_HTN_CMDQ ) -hinic3_dev_tnl_tso_support (info, nic_dev); + +hinic3_dev_tnl_tso_support (info, nic_dev); info->hash_key_size =HINIC3_RSS_KEY_SIZE ; info->reta_size =HINIC3_RSS_INDIR_SIZE ;
Signature · 1 line
2.47.0.windows.2
v6 cover net/hinic3: Fix the hinic3 driver issue
In reply to Feifei Wangv1: The RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO flag is added to support the VXLAN TSO function
v2: Modify the commit information issue and supplement the commit information
v3: Revise review comments. First, deterine whether the hardware supports it, then add the flag bit
v4: Fix the compilation error caused by leading spaces
v5: Add fix tag
v6: MOdify SP230 NIC vf device id
Feifei Wang (2):
net/hinic3: Fix VXLAN TSO issue
net/hinic3: Modify SP230 VF device id
drivers/net/hinic3/base/hinic3_csr.h | 2 +- drivers/net/hinic3/hinic3_ethdev.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-)
Signature · 1 line
2.47.0.windows.2
PATCH v6 1/2 net/hinic3: Fix VXLAN TSO issue
From: Feifei Wang <[email protected]>
VXLAN TSO lacks a flag bit, causing the processing function to determine that the hardware does not support it, leading to improper handling.
--- drivers/net/hinic3/hinic3_ethdev.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/net/hinic3/hinic3_ethdev.c +6 -2
@@ -652,8 +652,12 @@ hinic3_dev_configure(struct rte_eth_dev *dev)static void hinic3_dev_tnl_tso_support (struct rte_eth_dev_info *info,struct hinic3_nic_dev *nic_dev) { +if (HINIC3_SUPPORT_VXLAN_OFFLOAD (nic_dev)) + info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO ; +if (HINIC3_SUPPORT_GENEVE_OFFLOAD (nic_dev)) info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO ; +if (HINIC3_SUPPORT_IPXIP_OFFLOAD (nic_dev)) info->tx_offload_capa |=RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO ; }
@@ -698,8 +702,8 @@ hinic3_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_TCP_TSO |RTE_ETH_TX_OFFLOAD_MULTI_SEGS ; -if (nic_dev->feature_cap &NIC_F_HTN_CMDQ ) -hinic3_dev_tnl_tso_support (info, nic_dev); + +hinic3_dev_tnl_tso_support (info, nic_dev); info->hash_key_size =HINIC3_RSS_KEY_SIZE ; info->reta_size =HINIC3_RSS_INDIR_SIZE ;
Signature · 1 line
2.47.0.windows.2
PATCH v6 2/2 net/hinic3: Modify SP230 VF device id
In reply to Feifei WangFrom: Feifei Wang <[email protected]>
Modify SP230 the VF device ID of the SP230 NIC.
--- drivers/net/hinic3/base/hinic3_csr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/hinic3/base/hinic3_csr.h +1 -1
@@ -11,7 +11,7 @@#define HINIC3_DEV_ID_VF_SP620 0x375F#define HINIC3_DEV_ID_SP230 0x0229 -#define HINIC3_DEV_ID_VF_SP230 0x3750 +#define HINIC3_DEV_ID_VF_SP230 0x022a#define HINIC3_DEV_ID_SP920 0x0224
Signature · 1 line
2.47.0.windows.2
Stephen Hemminger
AppliedRe: [v6 0/2] net/hinic3: Fix the hinic3 driver issue
In reply to Feifei WangQuoted 12 lines · On Thu, 28 May 2026 21:01:18 +0800 Feifei Wang <[email protected]> wrote:
v1: The
RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSOflag is added to support the VXLAN TSO functionv2: Modify the commit information issue and supplement the commit information
v3: Revise review comments. First, deterine whether the hardware supports it, then add the flag bit
v4: Fix the compilation error caused by leading spaces
v5: Add fix tag
v6: MOdify SP230 NIC vf device id
Quoted 8 lines
Feifei Wang (2):
net/hinic3: Fix VXLAN TSO issue
net/hinic3: Modify SP230 VF device iddrivers/net/hinic3/base/hinic3_csr.h | 2 +- drivers/net/hinic3/hinic3_ethdev.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-)
Applied to next-net.
Needed to add Fixes, and fix the Signed-off-by mail address on second patch.