From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1203EA0548; Wed, 25 May 2022 07:47:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A460E400EF; Wed, 25 May 2022 07:47:58 +0200 (CEST) Received: from mail-oi1-f227.google.com (mail-oi1-f227.google.com [209.85.167.227]) by mails.dpdk.org (Postfix) with ESMTP id 0DD6C400D6 for ; Wed, 25 May 2022 07:47:57 +0200 (CEST) Received: by mail-oi1-f227.google.com with SMTP id w130so23986729oig.0 for ; Tue, 24 May 2022 22:47:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:content-transfer-encoding; bh=F4EAJGO74MoDYdKDGhyQ+v3xmX1j6Aft8KTksFhvlZE=; b=IzhmT6UnRb6cZF7VJHdtYPaBi5qYQmJI42NcdQMGyyDPofJImXb5ni0SrjaAMpaCUm bkf86cIn0PhL+bMklFVHcIsVa/MU6TVoGAKTosLTmR3EacCigZlSeiNspIvkYg/+GMfq YqVGuQ/7FzS42/VZJjxzuejiF/NlRttKuaOPdLTRIViLCLB3V8RZlkg73SWlL5+ZXFTz AGVcsDqgscP+QZsiJGjNCv4K12ZCVObKKM3l8n8VZd4qFb782xRM8+j/USTR/yfCm+bT iomdHYYjOqDX/eKofxWKiqmVZFn9P20z/3JIoqAJz2nhN9UNsxO64ORDXH+Rfbnju9gd Nt3w== X-Gm-Message-State: AOAM533JxT+LU9vcautXn24XOLv/iyJcBpJMw695aRtq9oItpI8TWhxw iCNXG1E79p1QDZsakq357SJ0djGL1p9Isr6/sg2/bSaX+Qc= X-Google-Smtp-Source: ABdhPJyVxOM5XLva1tsDT9PBMBRbtlK29QQ5Q1AX8iAkzrypmvTtMadEZ+9jaHd/m6P6vtoBNeUB1nkHX51m X-Received: by 2002:a05:6808:1189:b0:322:3293:4b30 with SMTP id j9-20020a056808118900b0032232934b30mr4031021oil.277.1653457676312; Tue, 24 May 2022 22:47:56 -0700 (PDT) Received: from smtp.aristanetworks.com (mx.aristanetworks.com. [162.210.129.12]) by smtp-relay.gmail.com with ESMTPS id a17-20020a056870e0d100b000e686d61f10sm1708768oab.17.2022.05.24.22.47.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 May 2022 22:47:56 -0700 (PDT) X-Relaying-Domain: arista.com Received: from us121.sjc.aristanetworks.com (us121.sjc.aristanetworks.com [10.242.248.8]) by smtp.aristanetworks.com (Postfix) with ESMTP id 64E51416A26; Tue, 24 May 2022 22:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=Arista-A; t=1653457675; bh=F4EAJGO74MoDYdKDGhyQ+v3xmX1j6Aft8KTksFhvlZE=; h=From:To:Cc:Subject:Date:From; b=TNycaHEVVZHupCt59W6+bz+GEcv0rlAOpGfI3Htrychf3C0ekPV2iuoyK2np7Mx8T 8cMPbVXGCkcUs+QbdLEPjV4sk+Tqw+TYZGxxpMR3xr+dgiRpiMGAEVAn/Vk74PxV4c EfgnmF1jieBdgw4ugj2RzMhvzUsL9oIXsQQGN8zfjCkVUwqnCmWzyPZjGerwtmnoTH +qwt0WeJF3TE542qS1g3B9EiMG71YWPd2IEWdOOlfEEJ2QNXbiOfh0OgmmorNWarj9 hlBCVnd/wiUue0s1wdlDKlQke4MGq5cN+iTd4vGtey6KlEVexxAekr8oUU+m6e+FZz huZRz9FONeIwA== From: Subendu Santra To: Maryam Tahhan , Reshma Pattan , Stephen Hemminger , Hemant Agrawal Cc: dev@dpdk.org, Subendu Santra Subject: [PATCH v2] app/procinfo: show all non-owned ports Date: Tue, 24 May 2022 22:46:05 -0700 Message-Id: <20220525054604.16161-1-subendu@arista.com> Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Show all non-owned ports when no port mask is specified show-port option without the mask option, displays only the last non-owned port. Show all the non-owned ports instead. Fixes: 1dd6cffb6571 ("app/procinfo: provide way to request info on owned ports") Cc: stephen@networkplumber.org Signed-off-by: Subendu Santra --- app/proc-info/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 56070a3317..2be24b584e 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -1504,10 +1504,10 @@ main(int argc, char **argv) if (nb_ports == 0) rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n"); - /* If no port mask was specified, then show non-owned ports */ + /* If no port mask was specified, then show all non-owned ports */ if (enabled_port_mask == 0) { RTE_ETH_FOREACH_DEV(i) - enabled_port_mask = 1ul << i; + enabled_port_mask |= (1ul << i); } for (i = 0; i < RTE_MAX_ETHPORTS; i++) { -- 2.28.0