From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 62FA2A0562;
	Fri,  3 Apr 2020 07:09:33 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id CCD091C114;
	Fri,  3 Apr 2020 07:07:52 +0200 (CEST)
Received: from mga05.intel.com (mga05.intel.com [192.55.52.43])
 by dpdk.org (Postfix) with ESMTP id 8FDC51C10C;
 Fri,  3 Apr 2020 07:07:50 +0200 (CEST)
IronPort-SDR: 1eNUNaBFJvaDsYimrXUjuBIxpDwCMrOVrubHABwnovr9sySWDOjWONaVZa8lgjR/rowyFPEOa0
 j0KwM1MMa0dA==
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from fmsmga006.fm.intel.com ([10.253.24.20])
 by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 02 Apr 2020 22:07:50 -0700
IronPort-SDR: 26Zx7WBVnvOOJHA9DHpnp1FYFzWd0XTxJtyOrGRdN6YSAueiZGgsWSAtsM+cFNXXe2gIrf874S
 8Trhg5UiMySw==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.72,338,1580803200"; d="scan'208";a="451178851"
Received: from unknown (HELO localhost.localdomain.bj.intel.com)
 ([172.16.182.123])
 by fmsmga006.fm.intel.com with ESMTP; 02 Apr 2020 22:07:48 -0700
From: Wei Zhao <wei.zhao1@intel.com>
To: dev@dpdk.org
Cc: qi.z.zhang@intel.com, nannan.lu@intel.com, qi.fu@intel.com,
 yuan.peng@intel.com, stable@dpdk.org, Wei Zhao <wei.zhao1@intel.com>
Date: Fri,  3 Apr 2020 12:46:07 +0800
Message-Id: <20200403044609.27512-12-wei.zhao1@intel.com>
X-Mailer: git-send-email 2.19.1
In-Reply-To: <20200403044609.27512-1-wei.zhao1@intel.com>
References: <20200403024353.24681-1-wei.zhao1@intel.com>
 <20200403044609.27512-1-wei.zhao1@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v4 11/13] net/ice: fix input set of VLAN item
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

The input set for inner type of vlan item should
be ICE_INSET_ETHERTYPE, not ICE_INSET_VLAN_OUTER.
This mac vlan filter is also part of DCF switch filter.

Cc: stable@dpdk.org
Fixes: 47d460d63233 ("net/ice: rework switch filter")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 drivers/net/ice/ice_switch_filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
index 81d069e99..686f9c3e3 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -911,7 +911,7 @@ ice_switch_inset_get(const struct rte_flow_item pattern[],
 						vlan_spec->inner_type;
 					list[t].m_u.vlan_hdr.type =
 						vlan_mask->inner_type;
-					input_set |= ICE_INSET_VLAN_OUTER;
+					input_set |= ICE_INSET_ETHERTYPE;
 				}
 				t++;
 			}
-- 
2.19.1