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 37C51A0548; Wed, 25 May 2022 07:53:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 224B7400EF; Wed, 25 May 2022 07:53:01 +0200 (CEST) Received: from mail-pg1-f226.google.com (mail-pg1-f226.google.com [209.85.215.226]) by mails.dpdk.org (Postfix) with ESMTP id 4A38F400D6 for ; Wed, 25 May 2022 07:53:00 +0200 (CEST) Received: by mail-pg1-f226.google.com with SMTP id t28so10472341pga.6 for ; Tue, 24 May 2022 22:53:00 -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:in-reply-to:references:content-transfer-encoding; bh=F4EAJGO74MoDYdKDGhyQ+v3xmX1j6Aft8KTksFhvlZE=; b=GUt4P/3dxaA4z3/ZaahrpHP2PHFKnKk52Aon2yksVxlFssbTzNYMSnRZa3hs/KAH11 OU+YeHvHYRW+pyUHTN3Cqsb6MYeKkfgXa9fkxsm/52mmvAuT9tvVv5AUWCoFQpv+rRa1 xa1V6ruQDIBf8AZLwjPltT+xFuDxGSESn4w8brImwCDe1NnGOC3bc3gU5T55vKeQM9MB 6bVPmNHbzPPjnKeGcCtnBCwlCksiOTd3f0o509X752UK/jU8NmUFljaNDhldbTvG2eAT p3IUeaCrClBGKrOAcLZ5MJrU9sHnTXCab9PcZb2tHo2wCK8U93p9eQZFxdUCDoL/7uiP UJow== X-Gm-Message-State: AOAM531rX9NhYjyMqKwEHyWDyICQOQdVg2XOeCxBKYN5c698hfE3UVH+ +OMKiKSEeIhjdzmIHU5ET6VeRX5m9aaaEdI25ggI0rLRJiM= X-Google-Smtp-Source: ABdhPJzWUuX0+Qtdm7lhJvTwT2o0mxL7Mz1jui0E9VhwkSpX3AMli4XIODd6DK9iJErKH8bu8uKwlmmkzI+H X-Received: by 2002:a65:48c5:0:b0:3c5:fe30:75dd with SMTP id o5-20020a6548c5000000b003c5fe3075ddmr26503364pgs.269.1653457979499; Tue, 24 May 2022 22:52:59 -0700 (PDT) Received: from smtp.aristanetworks.com (smtp.aristanetworks.com. [54.193.82.35]) by smtp-relay.gmail.com with ESMTPS id s11-20020a17090302cb00b00161d804dc51sm802006plk.79.2022.05.24.22.52.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 May 2022 22:52:59 -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 0654930298A2; Tue, 24 May 2022 22:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=Arista-A; t=1653457976; bh=F4EAJGO74MoDYdKDGhyQ+v3xmX1j6Aft8KTksFhvlZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F8oK9W2cy7ZsUDTXh1lETEbOqjgEVPnDMCrDWOtKt5LSS0tpHcOs/hPWHtP9SjA4v jax4ggyX8vA3a6p835Z1CYpaDIfnJkuNbPvgDjclAXibA/fKAeYySh/3SezQ64dzMi DFxtRhf6gwqYV2/dj7yjLhkwwtSaCWPJUt2p1HdnT5DKlV5hBHy4lCboLADVoAGuTg JaABrI9ZqPOrXChOskL5Tu9SAeTiqQy9oPmgD7q8YqVvLIyy/a4EsvCVHondhX5kck Q+XVpwiaUYB1BbCLKXmT/koZmV0f7YL3xbvGGj2XR6IWvJ9cJvNChvw6oYnwGYKXUe XoBTIJO3Cir6Q== 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:52:50 -0700 Message-Id: <20220525055250.22541-1-subendu@arista.com> In-Reply-To: <20220510132118.22688-1-subendu@arista.com> References: <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 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