1
1
This commit was SVN r24434.
Этот коммит содержится в:
Jeff Squyres 2011-02-22 22:34:44 +00:00
родитель 90eeba252e
Коммит b468c71b47
2 изменённых файлов: 3 добавлений и 3 удалений

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

@ -527,7 +527,7 @@ static int openib_reg_mr(void *reg_data, void *base, size_t size,
{ {
mca_btl_openib_device_t *device = (mca_btl_openib_device_t*)reg_data; mca_btl_openib_device_t *device = (mca_btl_openib_device_t*)reg_data;
mca_btl_openib_reg_t *openib_reg = (mca_btl_openib_reg_t*)reg; mca_btl_openib_reg_t *openib_reg = (mca_btl_openib_reg_t*)reg;
enum ibv_access_flags access_flag = (ibv_access_flags) (IBV_ACCESS_LOCAL_WRITE | enum ibv_access_flags access_flag = (enum ibv_access_flags) (IBV_ACCESS_LOCAL_WRITE |
IBV_ACCESS_REMOTE_WRITE | IBV_ACCESS_REMOTE_READ); IBV_ACCESS_REMOTE_WRITE | IBV_ACCESS_REMOTE_READ);
#if HAVE_DECL_IBV_ACCESS_SO #if HAVE_DECL_IBV_ACCESS_SO

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

@ -1366,12 +1366,12 @@ static int get_pathrecord_sl(struct ibv_context *context_arg,
/* if the destination lid SL value is not in the cache, go get it */ /* if the destination lid SL value is not in the cache, go get it */
if (SL_NOT_PRESENT == cache->sl_values[rem_lid]) { if (SL_NOT_PRESENT == cache->sl_values[rem_lid]) {
/* sag is first buffer, where we build the SA Get request to send */ /* sag is first buffer, where we build the SA Get request to send */
sag = (ib_mad_sa *)(cache->send_recv_buffer); sag = (struct ib_mad_sa *)(cache->send_recv_buffer);
init_sa_mad(cache, sag, &swr, &ssge, lid, rem_lid); init_sa_mad(cache, sag, &swr, &ssge, lid, rem_lid);
/* sar is the receive buffer (40 byte GRH) */ /* sar is the receive buffer (40 byte GRH) */
sar = (ib_mad_sa *)(cache->send_recv_buffer + sizeof(struct ib_mad_sa) + 40); sar = (struct ib_mad_sa *)(cache->send_recv_buffer + sizeof(struct ib_mad_sa) + 40);
rc = get_pathrecord_info(cache, sag, sar, &swr, lid, rem_lid); rc = get_pathrecord_info(cache, sag, sar, &swr, lid, rem_lid);
if (0 != rc) { if (0 != rc) {