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 ED183A00E6 for ; Fri, 12 Jul 2019 17:04:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F048E1BDE3; Fri, 12 Jul 2019 17:04:14 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 40B231B9FA for ; Fri, 12 Jul 2019 17:04:13 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id 19so4433106pfa.4 for ; Fri, 12 Jul 2019 08:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i0ZTTu+c1MOLmoUu8IKTGOzb2NWwGToFbR3n+tgMOoQ=; b=i60EtLPmHMUAkUwumeUSUCLPbe6gmGqzs07TX6qJPZgIcXQwaPp+KtFAjiizai76Lc t7anAf7zn8/sYjVoakaYFPxlChgSeJPaaVGwxM6lo9Q5BibIfqkJVETqN7nwQBws3ss7 we9Bnaay5rk9t5JLgWVsvVya25qpj+JK5ajXpfruMgzDCNLC2WaU1OJBWpmUUQN/3wCh oXKK1QhL53Pp3uWBw5DS4OH9hYTyNIgRxDYpJTkcfDJkrvEBY8RSP5EFeTaeLkbP41II wCtmLWWs0UeSeRp34YDqaVkyC8rZZpa4WTkOm01+iva9pv/K/zi7cXy1plpyNoGskZbI I1DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i0ZTTu+c1MOLmoUu8IKTGOzb2NWwGToFbR3n+tgMOoQ=; b=UzGGWhlIkNqXM4S4anFWucK5l8RNiNxQjvC8DmAurYIK+nsounTA1xl3MP+AgcvcsI LsEKvG+y1CznS7nQXIqVkXXStA0wEIMubFPkN1Rb2RclN9ENe4dUx184p2zlcRhO5fC6 UAXZZ4DIU0EEH/il2rbNbA9SvXqwC/sEzmgVIp/CUbMA1xd0nKzMRajJ8A4tEH928iWG T6obCAz9qQru2cy/r+4Qk9dm6Y2/xd/R3CB+LrHdZuT4uRjyWKTcu8XQMEYuJZ3HLx2s xFE0AoBmxs1O+oZu8YUAwlchtFtoMHbF2FoUDNaSwogfZtgZpBwj1Dy1xJSlH4cfYJVF LeTA== X-Gm-Message-State: APjAAAWFPjn7tBIP9h0ZCFwJPw49pRNBxBIi9cBOz0n1c+bZTT/48JGQ nDs5K55v7JZNLFKZr7dJpXk= X-Google-Smtp-Source: APXvYqwcQTYAQ7MMznGy40LYX2B98GMlrLfUNRRiwjGtvhatpqtUFlbBrr78ztHxa3OMsMiR2KqCZA== X-Received: by 2002:a17:90a:8c0c:: with SMTP id a12mr12323937pjo.67.1562943852373; Fri, 12 Jul 2019 08:04:12 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 81sm4045294pfa.86.2019.07.12.08.04.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 12 Jul 2019 08:04:12 -0700 (PDT) Date: Fri, 12 Jul 2019 08:04:05 -0700 From: Stephen Hemminger To: Ajit Khaparde Cc: dev@dpdk.org, ferruh.yigit@intel.com, Kalesh AP Message-ID: <20190712080405.49c941bd@hermes.lan> In-Reply-To: <20190712060622.76975-2-ajit.khaparde@broadcom.com> References: <20190712060622.76975-1-ajit.khaparde@broadcom.com> <20190712060622.76975-2-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 01/15] net/bnxt: fix extended port counter statistics 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 Fri, 12 Jul 2019 11:36:08 +0530 Ajit Khaparde wrote: > + snprintf(mz_name, RTE_MEMZONE_NAMESIZE, > + "bnxt_%04x:%02x:%02x:%02x-%s", pci_dev->addr.domain, > + pci_dev->addr.bus, pci_dev->addr.devid, > + pci_dev->addr.function, "rx_port_stats"); You could use the PCI_PRI_FMT definition from rte_pci.h here.