Skip to contentSkip to conversation

net/ixgbe: update PMD Tx offload mask

PATCH Applied Zhirun Yan 3 participants 3 messages Oct 25, 2018 Network drivers

lore
Share & tools
lore

Zhirun Yan

author
#0 lore raw

PATCH v2 1/1 net/ixgbe: update PMD Tx offload mask

Tx offload mask is updated in following commit: commit 1037ed842c37 ("mbuf: fix Tx offload mask"). Currently, the new added offload flags are not supported in PMD and application will fail to call PMD transmit prepare function.

This patch updates IXGBE_TX_OFFFLOAD_MASK.

Fixes 1037ed842c37 ("mbuf: fix Tx offload mask")
---
 drivers/net/ixgbe/ixgbe_rxtx.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ixgbe/ixgbe_rxtx.c +4 -0
index e6f61c900..e462a03d8 100644
@@ -58,6 +58,10 @@
 #endif
 /* Bit Mask to indicate what bits required for building TX context */
 #define IXGBE_TX_OFFLOAD_MASK (			 \
+		PKT_TX_OUTER_IPV6 |		 \
+		PKT_TX_OUTER_IPV4 |		 \
+		PKT_TX_IPV6 |			 \
+		PKT_TX_IPV4 |			 \
 		PKT_TX_VLAN_PKT |		 \
 		PKT_TX_IP_CKSUM |		 \
 		PKT_TX_L4_MASK |		 \
Signature · 1 line
2.17.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 19 lines · Zhirun Yan

Tx offload mask is updated in following commit: commit 1037ed842c37 ("mbuf: fix Tx offload mask"). Currently, the new added offload flags are not supported in PMD and application will fail to call PMD transmit prepare function.

This patch updates IXGBE_TX_OFFFLOAD_MASK.

Fixes 1037ed842c37 ("mbuf: fix Tx offload mask")

---
drivers/net/ixgbe/ixgbe_rxtx.c | 4 ++++

1 file changed, 4 insertions(+)
drivers/net/ixgbe/ixgbe_rxtx.c +0 -0
index e6f61c900..e462a03d8 100644

drivers/net/ixgbe/ixgbe_rxtx.c line 67

Quoted 10 lines
drivers/net/ixgbe/ixgbe_rxtx.c +4 -0
@@ -58,6 +58,10 @@
 #endif
 /* Bit Mask to indicate what bits required for building TX context */
 #define IXGBE_TX_OFFLOAD_MASK (			 \
+		PKT_TX_OUTER_IPV6 |		 \
+		PKT_TX_OUTER_IPV4 |		 \
+		PKT_TX_IPV6 |			 \
+		PKT_TX_IPV4 |			 \
 		PKT_TX_VLAN_PKT |		 \
 		PKT_TX_IP_CKSUM |		 \
 		PKT_TX_L4_MASK |		 \

Thanks,
Xiaolong

Applied
#2 lore raw
Quoted 34 lines

-----Original Message-----
From: Ye, Xiaolong
Sent: Thursday, October 25, 2018 2:45 AM
To: Yan, Zhirun <[email protected]>
Cc: [email protected]; Zhang, Qi Z <[email protected]>; Xing, Beilei <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v2] net/ixgbe: update PMD Tx offload mask

Quoted 23 lines · Zhirun Yan

Tx offload mask is updated in following commit: commit 1037ed842c37 ("mbuf: fix Tx offload mask"). Currently, the new added offload flags are not supported in PMD and application will fail to call PMD transmit prepare function.

This patch updates IXGBE_TX_OFFFLOAD_MASK.

Fixes 1037ed842c37 ("mbuf: fix Tx offload mask")

---
drivers/net/ixgbe/ixgbe_rxtx.c | 4 ++++

1 file changed, 4 insertions(+)
(quoted diff) +0 -0

b/drivers/net/ixgbe/ixgbe_rxtx.c index e6f61c900..e462a03d8 100644

drivers/net/ixgbe/ixgbe_rxtx.c +1 -0
@@ -58,6 +58,10 @@
 #endif
 /* Bit Mask to indicate what bits required for building TX context */
 #define IXGBE_TX_OFFLOAD_MASK (			 \
+		PKT_TX_OUTER_IPV6 |		 \
Quoted 8 lines

drivers/net/ixgbe/ixgbe_rxtx.c line 67

Quoted 6 lines
drivers/net/ixgbe/ixgbe_rxtx.c +3 -0
+		PKT_TX_OUTER_IPV4 |		 \
+		PKT_TX_IPV6 |			 \
+		PKT_TX_IPV4 |			 \
 		PKT_TX_VLAN_PKT |		 \
 		PKT_TX_IP_CKSUM |		 \
 		PKT_TX_L4_MASK |		 \

Applied to dpdk-next-net-intel.

Thanks
Qi

Quoted 3 lines

Thanks,
Xiaolong