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 286AAA0563; Mon, 23 Mar 2020 02:50:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5094C1BF6C; Mon, 23 Mar 2020 02:50:42 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 9C59C1BEE2 for ; Mon, 23 Mar 2020 02:50:39 +0100 (CET) IronPort-SDR: Wh0IUREIOEhFmcmK1mNT8En0evDXKU6P/+zp50WUR7LMCms2a1e69CKOiljJAbFal/TfEAd7xp O6taPwijTkhQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2020 18:50:37 -0700 IronPort-SDR: Xcrat1cYB2vCxPXlsT/r4vaXvYdUpoqXFV9oDAgNj3rXiKq1tIjpakHRuFoy2RrfzSy4zOplLC s8HRTMOwLDmg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,294,1580803200"; d="scan'208";a="269714661" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 22 Mar 2020 18:50:37 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 22 Mar 2020 18:50:29 -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:50:30 +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:50:30 +0800 From: "Wu, Jingjing" To: "Wang, Haiyue" , "dev@dpdk.org" , "Ye, Xiaolong" , "Zhang, Qi Z" , "Yang, Qiming" , "Xing, Beilei" CC: "Zhao1, Wei" , "Wang, Haiyue" Thread-Topic: [dpdk-dev] [PATCH v1 1/4] net/iavf: stop the PCI probe in DCF mode Thread-Index: AQHV9h5BDfCmXacvIEWzTMYuJGq6iKhVfdaw Date: Mon, 23 Mar 2020 01:50:30 +0000 Message-ID: References: <20200309141437.11800-1-haiyue.wang@intel.com> <20200309141437.11800-2-haiyue.wang@intel.com> In-Reply-To: <20200309141437.11800-2-haiyue.wang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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" +static int +handle_dcf_arg(__rte_unused const char *key, const char *value, + __rte_unused void *arg) __rte_unused is not needed here. +{ + 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; +} +