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 91E04A0563; Mon, 23 Mar 2020 02:55:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 106FB1BF6D; Mon, 23 Mar 2020 02:55:16 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 3691CF94 for ; Mon, 23 Mar 2020 02:55:14 +0100 (CET) IronPort-SDR: hqDUsf3S7VClmzF3WGHYGgpXsJPZZU+5iPtRu3s7FWdO+sAyM3ra6ZXEjBoOFELanlkwW6vmMf ryXMRqK7QHuQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2020 18:55:13 -0700 IronPort-SDR: /3AEK9OvI3sSqB7efqfH+V1LzOrBYF0Zt3fnotR4ifDwvbfOHT67i8NLs0s3dVQhnybULW9340 BzxOSbS7S7bw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,294,1580803200"; d="scan'208";a="281017544" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 22 Mar 2020 18:55:12 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 22 Mar 2020 18:55:12 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 23 Mar 2020 09:55:10 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Mon, 23 Mar 2020 09:55:10 +0800 From: "Wang, Haiyue" To: "Wu, Jingjing" , "dev@dpdk.org" , "Ye, Xiaolong" , "Zhang, Qi Z" , "Yang, Qiming" , "Xing, Beilei" CC: "Zhao1, Wei" Thread-Topic: [dpdk-dev] [PATCH v1 1/4] net/iavf: stop the PCI probe in DCF mode Thread-Index: AQHV9h4qELUmTI3eKkmDFxPZ1ksLgqhU+IQAgACHOkA= Date: Mon, 23 Mar 2020 01:55:10 +0000 Message-ID: <315f872d22154cb6b318b52d2356b9ba@intel.com> References: <20200309141437.11800-1-haiyue.wang@intel.com> <20200309141437.11800-2-haiyue.wang@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v1 1/4] net/iavf: stop the PCI probe in DCF mode 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: Wu, Jingjing > Sent: Monday, March 23, 2020 09:51 > To: Wang, Haiyue ; dev@dpdk.org; Ye, Xiaolong ; Zhang, > Qi Z ; Yang, Qiming ; Xing, = Beilei > Cc: Zhao1, Wei ; Wang, Haiyue > Subject: RE: [dpdk-dev] [PATCH v1 1/4] net/iavf: stop the PCI probe in DC= F mode >=20 > +static int > +handle_dcf_arg(__rte_unused const char *key, const char *value, > + __rte_unused void *arg) > __rte_unused is not needed here. Yes, has been rewritten and fixed in v3. ;-) >=20 > +{ > + bool *dcf =3D arg; > + > + if (arg =3D=3D NULL || value =3D=3D NULL) > + return -EINVAL; > + > + if (strcmp(value, "dcf") =3D=3D 0) > + *dcf =3D true; > + else > + *dcf =3D false; > + > + return 0; > +} > +