app/procinfo: provide way to request info on owned ports
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Sep 2020 05:34:33 +0000 (22:34 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Oct 2020 22:43:43 +0000 (00:43 +0200)
commit1dd6cffb6571f816d5a0d1fd620f43532240b40b
tree80d04c6e5207314818d9a0ad44954a4c04321b86
parentd82d6ac64338967c09fe5d242d633615db074c36
app/procinfo: provide way to request info on owned ports

There are cases where a port maybe owned by another (failsafe, netvsc,
bond); but currently proc-info has no way to look at stats of those
ports. This patch provides way for the user to explicitly ask for these
ports.

If no portmask is given the output is unchanged; it only shows the
top level ports. If portmask requests a specific port it will be
shown even if owned.

Increase the size of port mask variable to unsigned long to
allow up to 64 ports to be handled on 64 bit architecture.

The device owner is also a useful thing to show in port info.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
app/proc-info/main.c