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 79EDCA0613 for ; Mon, 23 Sep 2019 09:18:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4697D1B994; Mon, 23 Sep 2019 09:18:53 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 85DE431FC for ; Mon, 23 Sep 2019 09:18:51 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Sep 2019 00:18:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,539,1559545200"; d="scan'208";a="190580592" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga003.jf.intel.com with ESMTP; 23 Sep 2019 00:18:50 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Sep 2019 00:18:50 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Sep 2019 00:18:49 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.140]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.92]) with mapi id 14.03.0439.000; Mon, 23 Sep 2019 15:18:47 +0800 From: "Wu, Jingjing" To: "Li, Xiaoyun" , "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: AQHVZr6eba6IXCDnmEe8iUcvYA0Sc6c4yq5Q Date: Mon, 23 Sep 2019 07:18:47 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F81151CD07@SHSMSX103.ccr.corp.intel.com> References: <20190906075402.114177-1-xiaoyun.li@intel.com> <20190909032730.29718-1-xiaoyun.li@intel.com> <20190909032730.29718-5-xiaoyun.li@intel.com> In-Reply-To: <20190909032730.29718-5-xiaoyun.li@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNGI2MTYzYjItMDdlYy00NzEzLWI0NzYtNGM5ZTNiMzNiOTUyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiWitKZzN3ZVFaQlFpVm1mUEEwQVdHbFNVYUxNeXBYVGFsV3lQNm5kRTFpOTVaWHZxS3NjK216dlhDekRadDZTeSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action 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" <...> > +* ``--qp=3DN`` > + > + Set the number of queues as N, where qp > 0. The default value is 1? <...> > + > + /* 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) { 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) Thanks Jingjing