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> (cherry picked from commit 9b72e9465da3f2891ac13ed0443db44136506a1a)
Этот коммит содержится в:
родитель
6a739f8357
Коммит
47c435e531
@ -293,7 +293,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