mtl/ofi: ignore case when comparing provider names
Change the provider include and exclude list name comparison check to ignore case. The UDP provider's name is uppercase and was being selected despite being in the exclude list. Signed-off-by: Robert Wespetal <wesper@amazon.com>
Этот коммит содержится в:
родитель
1af6dbe277
Коммит
9b72e9465d
@ -330,7 +330,7 @@ is_in_list(char **list, char *item)
|
||||
}
|
||||
|
||||
while (NULL != list[i]) {
|
||||
if (0 == strncmp(item, list[i], strlen(list[i]))) {
|
||||
if (0 == strncasecmp(item, list[i], strlen(list[i]))) {
|
||||
return 1;
|
||||
} else {
|
||||
i++;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user