Skip to content

Commit

Permalink
app/procinfo: show all non-owned ports
Browse files Browse the repository at this point in the history
[ upstream commit 379e1d6 ]

Show all non-owned ports when no port mask is specified.

The show-port option, without the mask option,
was showing only the last non-owned port.
Show all the non-owned ports instead.

Fixes: 1dd6cff ("app/procinfo: provide way to request info on owned ports")

Signed-off-by: Subendu Santra <subendu@arista.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
  • Loading branch information
s6santra authored and kevintraynor committed Jun 28, 2022
1 parent 6fce2b8 commit ed8a477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/proc-info/main.c
Expand Up @@ -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++) {
Expand Down

0 comments on commit ed8a477

Please sign in to comment.