]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/rdma: remove redundant code
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 19 Jun 2019 07:53:08 +0000 (15:53 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 23 Aug 2019 06:36:05 +0000 (14:36 +0800)
commit9b63845ad15ce88fe7d47a764f37523e65f08480
tree8068b2056313ab154712940c2a106f8f9abab6b6
parentc86e927888292e205c86b1747a4239377ed5d91f
msg/async/rdma: remove redundant code

1. Below three bits are meaningless in pollfd::events field:
   POLLERR, POLLHUP, or POLLNVAL.
2. QueuePair::pd is initialized in the initialize list.
   There's no need to assign same value to it.
3. Remove the never used function Chunk::set_bound
4. Remove the never used function Chunk::set_offset
5. Remove the never used function QueuePair::is_error
6. Remove SimplePolicyMessenger used vars
7. remove socket_fd() interface since it's never used.
   All data write/read is based on ConnectedSocketImpl::fd.
   So, there's no need to expose socket_fd since it's never used.
8. Remove RDMAServerSocketImpl::get_fd which is not used.
   BTW, RDMAServerSocketImpl::fd has the same function as get_fd.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/SimplePolicyMessenger.h
src/msg/async/AsyncMessenger.cc
src/msg/async/PosixStack.cc
src/msg/async/Stack.h
src/msg/async/dpdk/DPDKStack.h
src/msg/async/rdma/Infiniband.cc
src/msg/async/rdma/Infiniband.h
src/msg/async/rdma/RDMAStack.cc
src/msg/async/rdma/RDMAStack.h