From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 837E65587 for ; Thu, 29 Jun 2017 17:08:20 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jun 2017 08:08:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,281,1496127600"; d="scan'208";a="1188552300" Received: from dpdk6.bj.intel.com ([172.16.182.81]) by fmsmga002.fm.intel.com with ESMTP; 29 Jun 2017 08:08:18 -0700 From: Wei Dai To: thomas@monjalon.net, wenzhuo.lu@intel.com, konstantin.ananyev@intel.com, helin.zhang@intel.com, jingjing.wu@intel.com, yuan.pntel.com Cc: dev@dpdk.org, Wei Dai Date: Thu, 29 Jun 2017 22:58:01 +0800 Message-Id: <1498748282-69914-5-git-send-email-wei.dai@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498748282-69914-1-git-send-email-wei.dai@intel.com> References: <20170629083404.1271-1-wei.dai@intel.com> <1498748282-69914-1-git-send-email-wei.dai@intel.com> Subject: [dpdk-dev] [PATCH v4 4/5] app/testpmd: display PCI address in port info 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: , X-List-Received-Date: Thu, 29 Jun 2017 15:08:21 -0000 Add the PCI address when running "show port info port_id". Signed-off-by: Wei Dai --- app/test-pmd/config.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index b0b340e..c2d5c03 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -438,6 +438,11 @@ port_infos_display(portid_t port_id) rte_eth_dev_info_get(port_id, &dev_info); printf("\n%s Infos for port %-2d %s\n", info_border, port_id, info_border); + printf("PCI Address: " PCI_PRI_FMT "\n", + dev_info.pci_dev->addr.domain, + dev_info.pci_dev->addr.bus, + dev_info.pci_dev->addr.devid, + dev_info.pci_dev->addr.function); rte_eth_macaddr_get(port_id, &mac_addr); print_ethaddr("MAC address: ", &mac_addr); printf("\nDriver name: %s", dev_info.driver_name); -- 2.7.4