Commit a00584b
Stefan Raspl
smc_rnics: Suppress unknown non-networking devices
As reported by Test, non-networking devices are still visible (see last
line):
$ smc_rnics
FID Power PCI ID PCHID Type Port PNET ID Interface
-------------------------------------------------------------------------
0 1 0000:00:00.0 0150 RoCE Express2 0 PERFNET enp0s0
40 1 000e:00:00.0 011c RoCE Express2 0 PERFNET enP14s40
80 1 000d:00:00.0 013c RoCE Express2 0 PERFNET enP13s80
c0 1 000c:00:00.0 0170 RoCE Express2 0 PERFNET enP12p0s0
800 1 0004:00:00.0 0110 144d:a822
To address this, we are now defaulting to supression of any unknown device
in the default output. However, if option '-r' is specified, we still show
all output, including non-networking devices - this can be useful in case
an older version is run with later hardware.
Note that it is tedious to blacklist all non-networking devices: Since
users can add their own NVMe devices, we can never know what we will
encounterin the wild.
Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>1 parent 7d06ce6 commit a00584b
3 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
| 116 | + | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
0 commit comments