Skip to contentSkip to conversation

net/ice: fix Tx checksum offload capability

PATCH In review Qi Zhang 2 participants 3 messages Nov 24, 2021 – Jan 2, 2022 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/ice: fix Tx checksum offload capability

Add missing capability for outer UDP Tx checksum.
Also fixed the feature list in ice_dcf.ini

Fixes bf89db4409bb ("net/ice: complete device info get in DCF")
---
 doc/guides/nics/features/ice_dcf.ini | 5 +++++
 drivers/net/ice/ice_dcf_ethdev.c     | 1 +
 2 files changed, 6 insertions(+)
doc/guides/nics/features/ice_dcf.ini +5 -0
index 4d6fb6d849..54073f0b88 100644
@@ -3,6 +3,9 @@
 ;
 ; Refer to default.ini for the full list of available PMD features.
 ;
+; A feature with "P" indicates only be supported when non-vector path
+; is selected.
+;
 [Features]
 Queue start/stop     = Y
 Scattered Rx         = Y
@@ -10,6 +13,8 @@ RSS hash             = P
 CRC offload          = Y
 L3 checksum offload  = P
 L4 checksum offload  = P
+Inner L3 checksum    = P
+Inner L4 checksum    = P
 Basic stats          = Y
 Linux                = Y
 x86-32               = Y
drivers/net/ice/ice_dcf_ethdev.c +1 -0
index 28f7f7fb72..fb0d13e5ec 100644
@@ -681,6 +681,7 @@ ice_dcf_dev_info_get(struct rte_eth_dev *dev,
 		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_TCP_TSO |
 		RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |
 		RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |
Signature · 1 line
2.26.2
Acked-by on v1 1/1
#1 lore raw
Quoted 59 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Wednesday, November 24, 2021 09:09
To: Yang, Qiming <[email protected]>
Cc: [email protected]; Xu, Wei1 <[email protected]>; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix Tx checksum offload capability

Add missing capability for outer UDP Tx checksum. Also fixed the feature list in ice_dcf.ini

Fixes bf89db4409bb ("net/ice: complete device info get in DCF")
---
 doc/guides/nics/features/ice_dcf.ini | 5 +++++
 drivers/net/ice/ice_dcf_ethdev.c     | 1 +
 2 files changed, 6 insertions(+)
doc/guides/nics/features/ice_dcf.ini +5 -0
index 4d6fb6d849..54073f0b88 100644
@@ -3,6 +3,9 @@
 ;
 ; Refer to default.ini for the full list of available PMD features.
 ;
+; A feature with "P" indicates only be supported when non-vector path ;
+is selected.
+;
 [Features]
 Queue start/stop     = Y
 Scattered Rx         = Y
@@ -10,6 +13,8 @@ RSS hash             = P
 CRC offload          = Y
 L3 checksum offload  = P
 L4 checksum offload  = P
+Inner L3 checksum    = P
+Inner L4 checksum    = P
 Basic stats          = Y
 Linux                = Y
 x86-32               = Y
drivers/net/ice/ice_dcf_ethdev.c +1 -1
index 28f7f7fb72..fb0d13e5ec 100644
@@ -681,6 +681,7 @@ ice_dcf_dev_info_get(struct rte_eth_dev *dev,
 		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_TCP_TSO |
 		RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |
 		RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |
--
Quoted 1 line

2.26.2

author Applied
#2 lore raw
Quoted 63 lines

-----Original Message-----
From: Yang, Qiming <[email protected]>
Sent: Tuesday, December 7, 2021 11:17 AM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Xu, Wei1 <[email protected]>; [email protected]
Subject: RE: [PATCH] net/ice: fix Tx checksum offload capability

Quoted 53 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Wednesday, November 24, 2021 09:09
To: Yang, Qiming <[email protected]>
Cc: [email protected]; Xu, Wei1 <[email protected]>; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix Tx checksum offload capability

Add missing capability for outer UDP Tx checksum. Also fixed the feature list in ice_dcf.ini

Fixes bf89db4409bb ("net/ice: complete device info get in DCF")
---
 doc/guides/nics/features/ice_dcf.ini | 5 +++++
 drivers/net/ice/ice_dcf_ethdev.c     | 1 +
 2 files changed, 6 insertions(+)
doc/guides/nics/features/ice_dcf.ini +5 -0
index 4d6fb6d849..54073f0b88 100644
@@ -3,6 +3,9 @@
 ;
 ; Refer to default.ini for the full list of available PMD features.
 ;
+; A feature with "P" indicates only be supported when non-vector path
+; is selected.
+;
 [Features]
 Queue start/stop     = Y
 Scattered Rx         = Y
@@ -10,6 +13,8 @@ RSS hash             = P
 CRC offload          = Y
 L3 checksum offload  = P
 L4 checksum offload  = P
+Inner L3 checksum    = P
+Inner L4 checksum    = P
 Basic stats          = Y
 Linux                = Y
 x86-32               = Y
drivers/net/ice/ice_dcf_ethdev.c +0 -0
index 28f7f7fb72..fb0d13e5ec 100644
@@ -681,6 +681,7 @@ ice_dcf_dev_info_get(struct rte_eth_dev *dev,
 		RTE_ETH_TX_OFFLOAD_TCP_CKSUM |
 		RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |
 		RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |
Quoted 8 lines
Quoted 6 lines
drivers/net/ice/ice_dcf_ethdev.c +1 -1
+		RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM |
 		RTE_ETH_TX_OFFLOAD_TCP_TSO |
 		RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |
 		RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |
--

2.26.2

Applied to dpdk-next-net-intel.

Thanks
Qi