]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/rdma: use ibv_port_attr object type in Port class
authorChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 3 Jun 2019 05:00:22 +0000 (13:00 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 02:45:05 +0000 (10:45 +0800)
commit4810e40d440123966da50aceeffcd4005117e4ff
treed6c4d256b387cbf1ccdd158e115ef2ff68301a61
parentb4596011f559318301ff8020f1c513d60c3dcde8
msg/async/rdma: use ibv_port_attr object type in Port class

1. Avoid to do memory management without using pointer to operate
operate the allocated space. Or, it could have memory leak.
2. Since member type has been changed in class Device, it need
to use member domain operator "." to access to the sub-member in
object.
3. There's no need to consider experimental API of ibv_query_port.
So, merge ibv_query_port in the prolog.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/async/rdma/Infiniband.cc
src/msg/async/rdma/Infiniband.h