From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7583C567C; Thu, 13 Apr 2017 11:53:10 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP; 13 Apr 2017 02:53:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,194,1488873600"; d="scan'208";a="88624612" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by fmsmga006.fm.intel.com with ESMTP; 13 Apr 2017 02:53:07 -0700 From: Bernard Iremonger To: dev@dpdk.org Cc: beilei.xing@intel.com, wenzhuo.lu@intel.com, qi.zhang@intel.com, Bernard Iremonger , stable@dpdk.org Date: Thu, 13 Apr 2017 10:53:05 +0100 Message-Id: <1492077185-11199-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1492010914-20274-1-git-send-email-bernard.iremonger@intel.com> References: <1492010914-20274-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-stable] [PATCH v3] net/i40e: fix to ensure vector mode is not used X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2017 09:53:11 -0000 In rx vector mode, QinQ is not supported. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected. Fixes: 5b2d37858d32 ("net/i40e: fix single VLAN tag to be outer VLAN tag") Cc: stable@dpdk.org Signed-off-by: Bernard Iremonger --- Changes in v3: Rebased to latest dpdk-next-net Revised commit message. Changes in v2: Rebased to latest dpdk-next-net Updated Fixes line. Added Cc: line 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