]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/rdma: parse IBSYNMsg.lid as hex when receiving message 26525/head
authorLiuPeng <liupeng37@baidu.com>
Wed, 20 Feb 2019 02:39:00 +0000 (10:39 +0800)
committerPeng Liu <liupeng37@baidu.com>
Thu, 21 Feb 2019 01:52:32 +0000 (09:52 +0800)
commit6c11ccf606b234fe728da63af7a0f1a617143f13
tree5fa4030b1c2bbbe2a7f9487d6ce28b90f77ec6b6
parente36364b1603e438672ebcc122cf260ee313fd1c9
msg/async/rdma: parse IBSYNMsg.lid as hex when receiving message

function send_msg encode struct IBSYNMsg to a string, and recv_msg parse the string.
In the function send_msg, im.lid (unsigned short int) is formatted into a string with format string %04x,
so, recv_msg should read im.lid from the string with format string %hx instead of %hu (unsigned short).

Fixes: https://tracker.ceph.com/issues/38391
Signed-off-by: Peng Liu <liupeng37@baidu.com>
src/msg/async/rdma/Infiniband.cc