[dpdk-stable] [PATCH 17.11] net/qede: fix Tx packet prepare for tunnel packets

Shahed Shaikh shshaikh at marvell.com
Fri Aug 9 10:34:02 CEST 2019


[ backported from upstream commit 60f9a634578320e344d25be789afc7b462450201 ]
This patch fixes a regression introduced by
commit 49d3978d5723 ("net/qede: fix Tx tunnel offload support mask")
in which qede_xmit_prep_pkts() breaks the loop for successful
check of Tunneling offload flags instead of continuing, resulting
in tx_pkt_prepare return a failure.

Fixes: 49d3978d5723 ("net/qede: fix Tx tunnel offload support mask")

Signed-off-by: Shahed Shaikh <shshaikh at marvell.com>
---
 drivers/net/qede/qede_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c
index 3a2b304..358a8ef 100644
--- a/drivers/net/qede/qede_rxtx.c
+++ b/drivers/net/qede/qede_rxtx.c
@@ -1821,7 +1821,7 @@ qede_xmit_prep_pkts(__rte_unused void *p_txq, struct rte_mbuf **tx_pkts,
 				temp = ol_flags & PKT_TX_TUNNEL_MASK;
 				if (temp == PKT_TX_TUNNEL_VXLAN ||
 				    temp == PKT_TX_TUNNEL_MPLSINUDP)
-					break;
+					continue;
 			}
 
 			rte_errno = -ENOTSUP;
-- 
2.7.4



More information about the stable mailing list