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 A774BA0613 for ; Mon, 23 Sep 2019 09:26:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 212F537A2; Mon, 23 Sep 2019 09:26:26 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 05C4834F3 for ; Mon, 23 Sep 2019 09:26:23 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Sep 2019 00:26:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,539,1559545200"; d="scan'208";a="203068546" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 23 Sep 2019 00:26:23 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Sep 2019 00:26:22 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 23 Sep 2019 00:26:22 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 23 Sep 2019 00:26:22 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.235]) with mapi id 14.03.0439.000; Mon, 23 Sep 2019 15:26:19 +0800 From: "Li, Xiaoyun" To: "Wu, Jingjing" , "Wiles, Keith" , "Maslekar, Omkar" , "Liang, Cunming" CC: "dev@dpdk.org" Thread-Topic: [PATCH v4 4/4] examples/ntb: support more functions for NTB Thread-Index: AQHVZr6ebMdBf1zSj0uimoA/bQugj6c4aq6AgACH6fA= Date: Mon, 23 Sep 2019 07:26:19 +0000 Message-ID: References: <20190906075402.114177-1-xiaoyun.li@intel.com> <20190909032730.29718-1-xiaoyun.li@intel.com> <20190909032730.29718-5-xiaoyun.li@intel.com> <9BB6961774997848B5B42BEC655768F81151CD07@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <9BB6961774997848B5B42BEC655768F81151CD07@SHSMSX103.ccr.corp.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 v4 4/4] examples/ntb: support more functions for NTB 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" Hi > -----Original Message----- > From: Wu, Jingjing > Sent: Monday, September 23, 2019 15:19 > To: Li, Xiaoyun ; Wiles, Keith ; > Maslekar, Omkar ; Liang, Cunming > > Cc: dev@dpdk.org > Subject: RE: [PATCH v4 4/4] examples/ntb: support more functions for NTB >=20 > <...> >=20 > > +* ``--qp=3DN`` > > + > > + Set the number of queues as N, where qp > 0. > The default value is 1? Yes. Will add respective comment and guide. >=20 > <...> >=20 > > + > > + /* Set default fwd mode if user doesn't set it. */ > > + if (fwd_mode =3D=3D MAX_FWD_MODE && eth_port_id < > RTE_MAX_ETHPORTS) { > > + printf("Set default fwd mode as iofwd.\n"); > > + fwd_mode =3D IOFWD; > > + } > > + if (fwd_mode =3D=3D MAX_FWD_MODE) { >=20 > use "else if"? because (fwd_mode =3D=3D MAX_FWD_MODE) including (fwd_mode > =3D=3D MAX_FWD_MODE && eth_port_id < RTE_MAX_ETHPORTS) Yes. Thanks. >=20 > Thanks > Jingjing