DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used
@ 2017-04-11 15:01 Bernard Iremonger
  2017-04-12 11:43 ` Zhang, Qi Z
  2017-04-12 15:28 ` [dpdk-dev] [PATCH v2] " Bernard Iremonger
  0 siblings, 2 replies; 14+ messages in thread
From: Bernard Iremonger @ 2017-04-11 15:01 UTC (permalink / raw)
  To: dev; +Cc: beilei.xing, wenzhuo.lu, qi.zhang, Bernard Iremonger

In rx vector mode, the QinQ VLAN tag is not stripped.
When hw_vlan_extend is set for QinQ ensure that
rx vector mode is not selected.

Fixes: ca74903b75cf ("net/i40e: extract non-x86 specific code from vector driver")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 drivers/net/i40e/i40e_rxtx_vec_common.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/i40e/i40e_rxtx_vec_common.h b/drivers/net/i40e/i40e_rxtx_vec_common.h
index 952fd4b63..692096684 100644
--- a/drivers/net/i40e/i40e_rxtx_vec_common.h
+++ b/drivers/net/i40e/i40e_rxtx_vec_common.h
@@ -234,6 +234,10 @@ i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)
 	if (rxmode->header_split == 1)
 		return -1;
 
+	/* no QinQ support */
+	if (rxmode->hw_vlan_extend == 1)
+		return -1;
+
 	return 0;
 #else
 	RTE_SET_USED(dev);
-- 
2.11.0

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

end of thread, other threads:[~2017-04-19 13:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 15:01 [dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used Bernard Iremonger
2017-04-12 11:43 ` Zhang, Qi Z
2017-04-12 12:30   ` Iremonger, Bernard
2017-04-12 12:42     ` Zhang, Qi Z
2017-04-12 13:54       ` Iremonger, Bernard
2017-04-12 14:07         ` Ferruh Yigit
2017-04-12 14:16           ` Zhang, Qi Z
2017-04-12 15:05             ` Iremonger, Bernard
2017-04-12 14:37           ` Iremonger, Bernard
2017-04-12 15:28 ` [dpdk-dev] [PATCH v2] " Bernard Iremonger
2017-04-13  9:53   ` [dpdk-dev] [PATCH v3] " Bernard Iremonger
2017-04-18  9:58     ` Ananyev, Konstantin
2017-04-18 10:04       ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
2017-04-19 13:10         ` Ferruh Yigit

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).