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 C04FAA0093; Tue, 10 May 2022 15:22:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68E6E4282D; Tue, 10 May 2022 15:22:03 +0200 (CEST) Received: from mail-lj1-f227.google.com (mail-lj1-f227.google.com [209.85.208.227]) by mails.dpdk.org (Postfix) with ESMTP id 8BC2C4069D for ; Tue, 10 May 2022 15:22:02 +0200 (CEST) Received: by mail-lj1-f227.google.com with SMTP id t25so20824789ljd.6 for ; Tue, 10 May 2022 06:22:02 -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=ZfShgcAMrO2CBN4n+AFHRuv36FsAYhHAGgd4HiVd/3Q=; b=Qve1YHrXcQF2Lqo5qBY0ka5eTGmQ7RYAsB3Co17gfEinUyPwC2fPXYWzE0L/U0yc+X EfM9xl7PiqlCyLq05jlLE8P/PBrX+xfHIBP3sIXdwxlRmEISUIEIMOrMrgbasW4sTO3T EH8rJIEZjDuvkGuht+MuLAzsZmFpHX8YUvoJqWIGdi6LyjWuzsy7UXgt0TNd3NZcgdam VDtOt5RCV9JQF1HqW4XYo7amiL+ujWMeqUAgMeD5XKU1U0Aoko/D2eoptLDHVebAd6gY KDF2q6Ibvl0UPwqvohRrhp3Lfu2ZgyNZtXDUlwLlVAwDmPWQIx7uJpdJJs48E3SDVSyO b6fQ== X-Gm-Message-State: AOAM532GwpqHXtw4T/aPUOv9QKlGOg1WPAhSfY7nCKhBrUhZx77I0CCP a0k+WOMz94yyIeUHoK23vyRBQZUCCF58DgYjWOZdMJUxht8= X-Google-Smtp-Source: ABdhPJwzrSI/KQl2Xk2TgEoMix1dLHWtrcVjcbk3GQOB2Kb9sn+R7ipmR8Az6Sqy1sdqAapcuQsrKrJCCKDR X-Received: by 2002:a05:651c:887:b0:247:f630:d069 with SMTP id d7-20020a05651c088700b00247f630d069mr14380361ljq.514.1652188921958; Tue, 10 May 2022 06:22:01 -0700 (PDT) Received: from smtp.aristanetworks.com (smtp.aristanetworks.com. [54.193.82.35]) by smtp-relay.gmail.com with ESMTPS id i17-20020ac25b51000000b004724277de30sm344417lfp.73.2022.05.10.06.22.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 May 2022 06:22:01 -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 5EC7F302BF8B; Tue, 10 May 2022 06:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=Arista-A; t=1652188919; bh=ZfShgcAMrO2CBN4n+AFHRuv36FsAYhHAGgd4HiVd/3Q=; h=From:To:Cc:Subject:Date:From; b=nZXh4F6mFP2vbLqvQWz0FGnqcFr2O2xF17kzTbCJ1zgOA7XDC+gpIjyKteS7f88uI zVe4TdXn+mWhHWwMakYAEK9Qm/+CTqUbaoTqwDN5peRxmb9HdfQ5sT4pGfKW9BlvVF 2nr2hd0COUCu4IYTKDBRhgwJnyIFpV/ryB1gOFVbhkHkBiMWNqjHZSPqo5x+kfFgwR 87QxIAGRDulScOEk4AH9PzaifZGlk1UPXwS/4/AClTSCj/Z+AWaQLljQ1OGHZWzK2T R8fzbUQf4nMlclsrKIk+pkte0eQIwwdEqDQKLE5zdUgJnwJVp0Uaj4rPK4cqP3PWpZ wL9gqptb+C5Gg== From: Subendu Santra To: Maryam Tahhan , Reshma Pattan , Stephen Hemminger , Hemant Agrawal Cc: dev@dpdk.org, Subendu Santra Subject: [PATCH] app/procinfo: show all non-owned ports Date: Tue, 10 May 2022 06:21:18 -0700 Message-Id: <20220510132118.22688-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 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