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 CCA7FA053A; Wed, 5 Aug 2020 10:40:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 24C281BFF7; Wed, 5 Aug 2020 10:40:34 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id B10A31BFF5 for ; Wed, 5 Aug 2020 10:40:31 +0200 (CEST) IronPort-SDR: TUADxtMN9G9TFw9DHoKMeFmoxmnSyUQ5bYkCLHat2qzqgdtCaQUWezEoup5XkamdRpoOqcyWkq SRE+RpI30n8A== X-IronPort-AV: E=McAfee;i="6000,8403,9703"; a="140391750" X-IronPort-AV: E=Sophos;i="5.75,436,1589266800"; d="scan'208";a="140391750" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2020 01:40:30 -0700 IronPort-SDR: 8dhQGJZyDIvPUiS9y/6j3dOj6Ax/Nl4eWPL/KsfDJHUml2ntNYQd01YM5zIPFQByEyg3Vc9EuU RW6Pz5wjxmMA== X-IronPort-AV: E=Sophos;i="5.75,436,1589266800"; d="scan'208";a="467387389" Received: from bricha3-mobl.ger.corp.intel.com ([10.213.255.148]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 05 Aug 2020 01:40:27 -0700 Date: Wed, 5 Aug 2020 09:40:18 +0100 From: Bruce Richardson To: Thomas Monjalon Cc: Dmitry Kozlyuk , Fady Bader , dev@dpdk.org, tbashar@mellanox.com, talshn@mellanox.com, yohadt@mellanox.com, harini.ramakrishnan@microsoft.com, ocardona@microsoft.com, pallavi.kadam@intel.com, ranjit.menon@intel.com, kevin.laatz@intel.com, ferruh.yigit@intel.com, arybchenko@solarflare.com, ciara.power@intel.com, navasile@linux.microsoft.com Message-ID: <20200805083621.GA1709@bricha3-MOBL.ger.corp.intel.com> References: <20200625133038.25180-1-fady@mellanox.com> <20200804062947.6176-5-fady@mellanox.com> <20200805023926.210646e2@sovereign> <14102736.rQ7LXLPuFW@thomas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14102736.rQ7LXLPuFW@thomas> Subject: Re: [dpdk-dev] [PATCH v4 4/5] telemetry: implement empty stubs for Windows 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" On Wed, Aug 05, 2020 at 10:27:27AM +0200, Thomas Monjalon wrote: > 05/08/2020 01:39, Dmitry Kozlyuk: > > On Tue, 4 Aug 2020 09:29:46 +0300, Fady Bader wrote: > > > Telemetry didn't compile under Windows. > > > Empty stubs implementation was added for Windows. > > > > > > Signed-off-by: Fady Bader > > > --- > > > lib/librte_telemetry/rte_telemetry.h | 4 +++ > > > lib/librte_telemetry/telemetry.c | 51 ++++++++++++++++++++++++++++++++- > > > lib/librte_telemetry/telemetry_legacy.c | 26 ++++++++++++++++- > > > 3 files changed, 79 insertions(+), 2 deletions(-) > > > > You could #ifdef code in librte_ethdev that uses librte_telemetry and not > > build librte_telemetry at all. This approach is already taken in > > eal_common_options.c and it avoids spreading #ifdef throughout telemetry code. > > The problem is that telemetry can be used anywhere, not only in ethdev. > I feel it is better to #ifdef telemetry than every telemetry calls. > Given that the majority of telemetry has no external dependencies (jansson is only used for the older compatibility part), and it uses sockets for communication, is there a reason why it can't just be made to build and work on windows? The unix domain socket could be converted to a standard UDP socket on localhost, perhaps. Is there anything unix-specific beyond that? /Bruce