patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] net/i40e: fix offload flag checking in simple Tx datapath
@ 2021-04-27  8:58 Alvin Zhang
  2021-05-06  5:32 ` [dpdk-stable] [dpdk-dev] " Zhou, JunX W
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alvin Zhang @ 2021-04-27  8:58 UTC (permalink / raw)
  To: jingjing.wu, beilei.xing; +Cc: dev, Alvin Zhang, stable

For Tx packets, if no other offload flag except
'PKT_TX_OUTER_IPV6, PKT_TX_OUTER_IPV4, PKT_TX_IPV6, PKT_TX_IPV4' is
set, the hardware doesn't need to do offloads for these packets.

This patch removes those previously indicated flags from the offload
flag checking in simple Tx datapath.

Fixes: 146ffa81d05e ("net/i40e: add Tx preparation for simple Tx datapath")
Cc: stable@dpdk.org

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
---
 drivers/net/i40e/i40e_rxtx.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c
index 86a9eae..48d0582 100644
--- a/drivers/net/i40e/i40e_rxtx.c
+++ b/drivers/net/i40e/i40e_rxtx.c
@@ -1501,7 +1501,9 @@
 			return i;
 		}
 
-		if (ol_flags & PKT_TX_OFFLOAD_MASK) {
+		if (ol_flags & PKT_TX_OFFLOAD_MASK &
+		    ~(PKT_TX_OUTER_IPV6 | PKT_TX_OUTER_IPV4 |
+		      PKT_TX_IPV6 | PKT_TX_IPV4)) {
 			rte_errno = ENOTSUP;
 			return i;
 		}
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-05-12  8:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27  8:58 [dpdk-stable] [PATCH] net/i40e: fix offload flag checking in simple Tx datapath Alvin Zhang
2021-05-06  5:32 ` [dpdk-stable] [dpdk-dev] " Zhou, JunX W
2021-05-10  3:27 ` Rong, Leyi
2021-05-11  2:39 ` [dpdk-stable] [PATCH v2] " Alvin Zhang
2021-05-11  8:08   ` Rong, Leyi
2021-05-11  8:45   ` [dpdk-stable] [PATCH v3] " Alvin Zhang
2021-05-11  9:20     ` Rong, Leyi
2021-05-12  8:48       ` Zhang, Qi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).