From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id DFC659ACF for ; Tue, 1 Mar 2016 12:06:39 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 01 Mar 2016 03:06:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,522,1449561600"; d="scan'208";a="57515426" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 01 Mar 2016 03:06:38 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 1 Mar 2016 03:06:38 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 1 Mar 2016 03:06:38 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.136]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.42]) with mapi id 14.03.0248.002; Tue, 1 Mar 2016 19:06:36 +0800 From: "Wang, Xiao W" To: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v4 1/3] fm10k: enable FTAG based forwarding Thread-Index: AQHRc3xjE7Epp/fi6E6gGBp6+eB+259DrNSAgADAXFA= Date: Tue, 1 Mar 2016 11:06:36 +0000 Message-ID: References: <1454557129-12825-2-git-send-email-xiao.w.wang@intel.com> <1456810601-7419-1-git-send-email-xiao.w.wang@intel.com> <1456810601-7419-2-git-send-email-xiao.w.wang@intel.com> <1785217.K8F1c8amTK@xps13> In-Reply-To: <1785217.K8F1c8amTK@xps13> 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 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v4 1/3] fm10k: enable FTAG based forwarding X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2016 11:06:40 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Tuesday, March 1, 2016 3:36 PM > To: Wang, Xiao W > Cc: dev@dpdk.org; Chen, Jing D > Subject: Re: [dpdk-dev] [PATCH v4 1/3] fm10k: enable FTAG based forwardin= g >=20 > 2016-03-01 13:36, Wang Xiao W: > > +static int > > +fm10k_check_ftag(struct rte_devargs *devargs) { > > + if (devargs =3D=3D NULL) > > + return 0; > > + > > + if (strstr(devargs->args, "enable_ftag=3D1") =3D=3D NULL) > > + return 0; > > + > > + return 1; > > +} >=20 > With strstr(), chenable_ftag=3D12 will work :) Please check how to use kv= args. OK, it's better to standardize the args string processing. I'll rework it. Best Regards, Xiao