1
1

Merge pull request #1101 from hjelmn/ib_fix

btl/openib: fix access flags
Этот коммит содержится в:
Nathan Hjelm 2015-11-05 09:01:28 -07:00
родитель 68996d6858 4ddbdad772
Коммит e0a291812d

Просмотреть файл

@ -573,7 +573,7 @@ static int openib_reg_mr(void *reg_data, void *base, size_t size,
}
if (reg->access_flags & MCA_MPOOL_ACCESS_REMOTE_WRITE) {
access_flag |= IBV_ACCESS_REMOTE_WRITE;
access_flag |= IBV_ACCESS_REMOTE_WRITE | IBV_ACCESS_LOCAL_WRITE;
}
if (reg->access_flags & MCA_MPOOL_ACCESS_LOCAL_WRITE) {
@ -582,7 +582,7 @@ static int openib_reg_mr(void *reg_data, void *base, size_t size,
#if HAVE_DECL_IBV_ATOMIC_HCA
if (reg->access_flags & MCA_MPOOL_ACCESS_REMOTE_ATOMIC) {
access_flag |= IBV_ACCESS_REMOTE_ATOMIC;
access_flag |= IBV_ACCESS_REMOTE_ATOMIC | IBV_ACCESS_LOCAL_WRITE;
}
#endif