From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E2E9DA00BE; Fri, 1 Nov 2019 03:02:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E46321D420; Fri, 1 Nov 2019 03:02:27 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id A378C1D41C for ; Fri, 1 Nov 2019 03:02:26 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Oct 2019 19:02:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,253,1569308400"; d="scan'208";a="284074129" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 31 Oct 2019 19:02:25 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 31 Oct 2019 19:02:25 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.248]) with mapi id 14.03.0439.000; Fri, 1 Nov 2019 10:02:23 +0800 From: "Xing, Beilei" To: "Zhu, TaoX" , "Zhang, Qi Z" CC: "dev@dpdk.org" Thread-Topic: [PATCH] net/i40e: qinq strip is not supported by i40e Thread-Index: AQHVjwYwPEDjFxDbeEKJ7ucbl0bsoqd1kmKw Date: Fri, 1 Nov 2019 02:02:23 +0000 Message-ID: <94479800C636CB44BD422CB454846E013CE7E941@SHSMSX101.ccr.corp.intel.com> References: <20191030182131.72399-1-taox.zhu@intel.com> In-Reply-To: <20191030182131.72399-1-taox.zhu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e: qinq strip is not supported by i40e X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Zhu, TaoX > Sent: Thursday, October 31, 2019 2:22 AM > To: Xing, Beilei ; Zhang, Qi Z > Cc: dev@dpdk.org; Zhu, TaoX > Subject: [PATCH] net/i40e: qinq strip is not supported by i40e >=20 > From: Zhu Tao >=20 > Qinq strip is not supported by i40e. When user tries to turn on QinQ stri= p, the > driver gives unsupported return value and log. >=20 > Signed-off-by: Zhu Tao > --- > drivers/net/i40e/i40e_ethdev.c | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethde= v.c > index 77a46832c..ed8cbd849 100644 > --- a/drivers/net/i40e/i40e_ethdev.c > +++ b/drivers/net/i40e/i40e_ethdev.c > @@ -3847,6 +3847,11 @@ i40e_vlan_offload_set(struct rte_eth_dev *dev, int > mask) > struct i40e_vsi *vsi =3D pf->main_vsi; > struct rte_eth_rxmode *rxmode; >=20 > + if (mask & ETH_QINQ_STRIP_MASK) { > + PMD_DRV_LOG(ERR, "Strip qinq is not supported."); > + return -ENOTSUP; > + } > + > rxmode =3D &dev->data->dev_conf.rxmode; > if (mask & ETH_VLAN_FILTER_MASK) { > if (rxmode->offloads & DEV_RX_OFFLOAD_VLAN_FILTER) > -- > 2.17.1 Acked-by: Beilei Xing