-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/verbs: Bug fix for matching domain name with device name
The domain name may contain a "-<xxx>" suffix, the original code used "strncmp(domain_name, dev_name, strlen(dev_name))" to check if the names match. However, this scheme does not work when the device name is a substring of the domain name (e.g. "mlx5_11-rdm" vs "mlx5_1") and would incorrectly return match for such case. Signed-off-by: jianxin.xiong <jianxin.xiong@intel.com>
- Loading branch information
Showing
1 changed file
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters