Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ibdiag: Compare CA device names by using the maximum length between them
Compare CA device names by using the maximum length between them in order to avoid matches of sub strings between CA device names that can match the wrong device. Example before the fix: Input CA name: abc_11 List CA names: abc_1, def_1 When running : ibstat abc_11, the output will be the details of abc_1 even though abc_11 does not exist. After the fix, the output of this case will be: 'abc_11' IB device can't be found Signed-off-by: Haim Boozaglo <haimbo@mellanox.com>
- Loading branch information