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 695B3A2EDB for ; Fri, 6 Sep 2019 03:20:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 50DFF1F0A2; Fri, 6 Sep 2019 03:20:02 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id A7EC41F09E for ; Fri, 6 Sep 2019 03:20:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2019 18:19:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,471,1559545200"; d="scan'208";a="195281925" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga002.jf.intel.com with ESMTP; 05 Sep 2019 18:19:59 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 5 Sep 2019 18:19:58 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 5 Sep 2019 18:19:58 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 5 Sep 2019 18:19:58 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.86]) with mapi id 14.03.0439.000; Fri, 6 Sep 2019 09:19:57 +0800 From: "Li, Xiaoyun" To: Aaron Conole CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 4/4] examples/ntb: support more functions for NTB Thread-Index: AQHVY/HAfwzzuhX5rka3mJnY8adscqcd2lpw Date: Fri, 6 Sep 2019 01:19:56 +0000 Message-ID: References: In-Reply-To: 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 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" Sure. Thanks for reminding. Will fix it in v2. > -----Original Message----- > From: Aaron Conole [mailto:aconole@redhat.com] > Sent: Thursday, September 5, 2019 21:57 > To: Li, Xiaoyun > Cc: dev@dpdk.org > Subject: re: [dpdk-dev] [PATCH 4/4] examples/ntb: support more functions = for > NTB >=20 >=20 > Hi Xiaoyun, >=20 > Xiaoyun Li writes: >=20 > > Support to transmit files between two systems. > > Support iofwd between one ethdev and NTB device. > > Support rxonly and txonly for NTB device. > > Support to set forwarding mode as file-trans, txonly, rxonly or iofwd. > > Support to show/clear port stats and throughput. > > > > Signed-off-by: Xiaoyun Li > > --- >=20 > ... >=20 > > + static uint64_t prev_cycles[2]; > > + > > + diff_cycles =3D prev_cycles[port]; > > + prev_cycles[port] =3D rte_rdtsc(); > > + if (diff_cycles > 0) >=20 > This (and a few other places) causes error on aarch64 platform. >=20 > Can you either restrict this example to x86 only, or rework it to use som= e other > interface? >=20 > See: >=20 > https://travis-ci.com/ovsrobot/dpdk/jobs/231342972 >=20 > for more information.