From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Dai Subject: [PATCH v4 4/5] app/testpmd: display PCI address in port info Date: Thu, 29 Jun 2017 22:58:01 +0800 Message-ID: <1498748282-69914-5-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> Cc: dev@dpdk.org, 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@dpdk.org 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) In-Reply-To: <1498748282-69914-1-git-send-email-wei.dai@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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