]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/rdma: Make port number an attribute of the Connection not of the Device 14297/head
authorAmir Vadai <amir@vadai.me>
Wed, 22 Mar 2017 10:41:12 +0000 (12:41 +0200)
committerAdir Lev <adirl@mellanox.com>
Tue, 4 Apr 2017 14:52:10 +0000 (17:52 +0300)
commitaf2f1ecd2700ef3fad7e7d16d61f8ee86794b3ae
treeb4aee699a4112839d8586916f890509676fd0dfb
parent14867ad39887ad9a30511b257959fb00b46418ab
msg/async/rdma: Make port number an attribute of the Connection not of the Device

Since multiple connections on different ports could exist, shouldn't use
device->active_port, instead use conn->ibport.
Or in other words, now Device object doesn't have an active_port,
instead every port specific action (create_qp, get_lid, get_gid etc.)
need to specify the port number. The information about the port number
is known to the connection (RDMAConnectedSocket*) who is the caller of
those actions.

Issue: 995322
Change-Id: I482cb87c04ba99845dc44f6dd0547835fe814ebf
Signed-off-by: Amir Vadai <amir@vadai.me>
src/msg/async/rdma/Device.cc
src/msg/async/rdma/Device.h
src/msg/async/rdma/RDMAConnectedSocketImpl.cc