Skip to content

Commit 5c589e6

Browse files
Stefan RasplWenjia Zhang
authored andcommitted
smc_chk: Indicate PNET IDs set by smc_pnet
Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
1 parent 01859ae commit 5c589e6

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Release History:
4646
- `smc_rnics`:
4747
- List unknown devices with option `-a`
4848
- Include software-set PNET IDs
49+
- `smc_chk`: Indicate PNET IDs set by `smc_pnet`.
4950

5051
Bug fixes:
5152
- `smc_rnics`: Display correct PNET ID for unknown Mellanox cards

smc_chk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ function set_pnetid() {
273273
# Check for a software-defined PNET ID
274274
debug "No luck so far - try the SW PNET table";
275275
pnetid="`smc_pnet | awk -v id="$1" '$2 == id {print($1)}'`";
276+
if [ "$pnetid" != "" ]; then
277+
pnetid="$pnetid*";
278+
fi
276279
debug "PNET ID is '$pnetid'";
277280
}
278281

smc_chk.8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ usage information.
6161
.BI "\-i, \-\-pnetid " INTERFACE
6262
Print the PNET ID of interface
6363
.I INTERFACE
64-
and exit.
64+
and exit. An appended asterisk * indicates that the PNET ID was defined via
65+
.BR smc_pnet .
6566
.TP
6667
.BI "\-p, \-\-port " PORT
6768
Use port

0 commit comments

Comments
 (0)