1
1

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)
Этот коммит содержится в:
Robert Wespetal 2019-12-16 13:05:00 -08:00 коммит произвёл Howard Pritchard
родитель 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++;