From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70E19C433E3 for ; Wed, 5 Aug 2020 08:40:35 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 0429E22CA1 for ; Wed, 5 Aug 2020 08:40:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0429E22CA1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org 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