Skip to contentSkip to conversation

net/ice: support Tx checksum offload for tunneling packets

PATCH Superseded Beilei Xing 2 participants 6 messages May 16, 2019 – Jun 18, 2019 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: support Tx checksum offload for tunneling packets

Enable Tx checksum offload for tunneling packets by configuring tunneling parameters in Tx descriptors, including outer L3/L4 checksum offload.

---
 drivers/net/ice/ice_ethdev.c |  3 +-
 drivers/net/ice/ice_rxtx.c   | 73 +++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 71 insertions(+), 5 deletions(-)
drivers/net/ice/ice_ethdev.c +2 -1
index 3b16008..875f913 100644
@@ -2043,7 +2043,8 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 			DEV_TX_OFFLOAD_UDP_CKSUM |
 			DEV_TX_OFFLOAD_TCP_CKSUM |
 			DEV_TX_OFFLOAD_SCTP_CKSUM |
-			DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;
+			DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM |
+			DEV_TX_OFFLOAD_OUTER_UDP_CKSUM;
 		dev_info->flow_type_rss_offloads |= ICE_RSS_OFFLOAD_ALL;
 	}
 
drivers/net/ice/ice_rxtx.c +69 -4

108 lines not on this page · raw message

Signature · 1 line
2.5.5
#1 lore raw

PATCH v2 1/1 net/ice: support Tx checksum offload for tunneling packets

Enable Tx checksum offload for tunneling packets by configuring tunneling parameters in Tx descriptors, including outer L3/L4 checksum offload.

---
v2 changes:
- Uuter udp checksum in tunneling parameter.

 drivers/net/ice/ice_ethdev.c |  3 +-
 drivers/net/ice/ice_rxtx.c   | 78 +++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 76 insertions(+), 5 deletions(-)
drivers/net/ice/ice_ethdev.c +2 -1
index 19fbbc3..b6a473f 100644
@@ -2051,7 +2051,8 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 			DEV_TX_OFFLOAD_UDP_CKSUM |
 			DEV_TX_OFFLOAD_TCP_CKSUM |
 			DEV_TX_OFFLOAD_SCTP_CKSUM |
-			DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;
+			DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM |
+			DEV_TX_OFFLOAD_OUTER_UDP_CKSUM;
 		dev_info->flow_type_rss_offloads |= ICE_RSS_OFFLOAD_ALL;
 	}
 
drivers/net/ice/ice_rxtx.c +74 -4

113 lines not on this page · raw message

Signature · 1 line
2.5.5
#2 lore raw

v3 cover net/ice: support Tx checksum offload

Enable Tx checksum offload for tunneling packets.
Update release notes.

v3 change:
- Add release notes.
v2 change:
- Parse udp checksum in tunneling parameter.

Beilei Xing (2):
net/ice: support Tx checksum offload for tunneling packets
doc: update for ICE driver

 doc/guides/rel_notes/release_19_08.rst |  5 +++
 drivers/net/ice/ice_ethdev.c           |  3 +-
 drivers/net/ice/ice_rxtx.c             | 78 ++++++++++++++++++++++++++++++++--
 3 files changed, 81 insertions(+), 5 deletions(-)
Signature · 1 line
2.5.5
#3 lore raw

PATCH v3 1/2 net/ice: support Tx checksum offload for tunneling packets

Enable Tx checksum offload for tunneling packets by configuring tunneling parameters in Tx descriptors, including outer L3/L4 checksum offload.

---
 drivers/net/ice/ice_ethdev.c |  3 +-
 drivers/net/ice/ice_rxtx.c   | 78 +++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 76 insertions(+), 5 deletions(-)
drivers/net/ice/ice_ethdev.c +2 -1
index 19fbbc3..b6a473f 100644
@@ -2051,7 +2051,8 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 			DEV_TX_OFFLOAD_UDP_CKSUM |
 			DEV_TX_OFFLOAD_TCP_CKSUM |
 			DEV_TX_OFFLOAD_SCTP_CKSUM |
-			DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;
+			DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM |
+			DEV_TX_OFFLOAD_OUTER_UDP_CKSUM;
 		dev_info->flow_type_rss_offloads |= ICE_RSS_OFFLOAD_ALL;
 	}
 
drivers/net/ice/ice_rxtx.c +74 -4

113 lines not on this page · raw message

Signature · 1 line
2.5.5
#4 lore raw

PATCH v3 2/2 doc: update for ICE driver

In reply to Beilei Xing

Update feature for ICE driver

---
 doc/guides/rel_notes/release_19_08.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/rel_notes/release_19_08.rst +5 -0
index 8da66fe..81ec5fa 100644
@@ -58,6 +58,11 @@ New Features
 
   Enabled the new device whose device id is 0x15FF.
 
+* **Updated the ice driver.**
+
+  Updated ice driver with new features and improvements, including:
+
+  * Enabled Tx outer/inner L3/L4 checksum offload.
 
 Removed Items
 -------------
Signature · 1 line
2.5.5
Acked-by on the v3 series Applied
#5 lore raw

Re: [dpdk-dev] [PATCH v3 0/2] net/ice: support Tx checksum offload

In reply to Beilei Xing
Quoted 22 lines

-----Original Message-----
From: Xing, Beilei
Sent: Tuesday, June 18, 2019 3:05 PM
To: Zhang, Qi Z <[email protected]>; Mcnamara, John <[email protected]>
Cc: [email protected]
Subject: [PATCH v3 0/2] net/ice: support Tx checksum offload

Enable Tx checksum offload for tunneling packets.
Update release notes.

v3 change:
- Add release notes.
v2 change:
- Parse udp checksum in tunneling parameter.

Beilei Xing (2):
net/ice: support Tx checksum offload for tunneling packets
doc: update for ICE driver

Quoted 8 lines
 doc/guides/rel_notes/release_19_08.rst |  5 +++
 drivers/net/ice/ice_ethdev.c           |  3 +-
 drivers/net/ice/ice_rxtx.c             | 78
++++++++++++++++++++++++++++++++--
 3 files changed, 81 insertions(+), 5 deletions(-)

--
2.5.5

Applied to dpdk-next-net-intel

Thanks
Qi