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