]> git.openfabrics.org - ~ardavis/dapl.git/commitdiff
mpxyd: byte swap incorrect on WRC wr_len
authorArlin Davis <arlin.r.davis@intel.com>
Wed, 12 Aug 2015 15:51:03 +0000 (08:51 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Wed, 12 Aug 2015 15:51:03 +0000 (08:51 -0700)
Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
dapl/openib_common/dapl_mic_common.h

index 6259bb61c101a1f0731f1d2f923014b59530b449..5afc8ecf9d7ba413738e60b208ecbeb999a6c891 100755 (executable)
@@ -914,14 +914,14 @@ static inline void mcm_hton_wrc(mcm_wrc_info_t *dst, mcm_wrc_info_t *src)
        if (src->wr_addr) {
                dst->wr_addr = htonll(src->wr_addr);
                dst->wr_rkey = htonl(src->wr_rkey);
-               dst->wr_len = htons(src->wr_len);
+               dst->wr_len = htonl(src->wr_len);
                dst->wr_sz = htons(src->wr_sz);
                dst->wr_end = htons(src->wr_end);
        }
        if (src->wc_addr) {
                dst->wc_addr = htonll(src->wc_addr);
                dst->wc_rkey = htonl(src->wc_rkey);
-               dst->wc_len = htons(src->wc_len);
+               dst->wc_len = htonl(src->wc_len);
                dst->wc_sz = htons(src->wc_sz);
                dst->wc_end = htons(src->wc_end);
        }
@@ -932,13 +932,13 @@ static inline void mcm_ntoh_wrc(mcm_wrc_info_t *dst, mcm_wrc_info_t *src)
 {
        dst->wr_addr = ntohll(src->wr_addr);
        dst->wr_rkey = ntohl(src->wr_rkey);
-       dst->wr_len = ntohs(src->wr_len);
+       dst->wr_len = ntohl(src->wr_len);
        dst->wr_sz = ntohs(src->wr_sz);
        dst->wr_end = ntohs(src->wr_end);
 
        dst->wc_addr = ntohll(src->wc_addr);
        dst->wc_rkey = ntohl(src->wc_rkey);
-       dst->wc_len = ntohs(src->wc_len);
+       dst->wc_len = ntohl(src->wc_len);
        dst->wc_sz = ntohs(src->wc_sz);
        dst->wc_end = ntohs(src->wc_end);
 }