]> git.baikalelectronics.ru Git - kernel.git/commit
IB/cma: Refactor RDMA IP CM private-data parsing code
authorHaggai Eran <haggaie@mellanox.com>
Thu, 30 Jul 2015 14:50:19 +0000 (17:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 19:48:22 +0000 (15:48 -0400)
commit74711dc5775b1b2e8351f145328c789f58505779
tree108dfcec29545712dd4b9672e062b03a645eff14
parent8a23a1c0f02cb1d03a26cc003c4e67fccaf44586
IB/cma: Refactor RDMA IP CM private-data parsing code

When receiving a connection request, rdma_cm needs to associate the request
with a network device, in order to disambiguate requests. To do this, it
needs to know the request's destination IP. For this the module needs to
allow getting this information from the private data in the request packet,
instead of relying on the information already being in the listening RDMA
CM ID.

When creating a new incoming connection ID, the code in
cma_save_ip{4,6}_info can no longer rely on the listener's private data to
find the port number, so it reads it from the requested service ID.

Signed-off-by: Guy Shapiro <guysh@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Yotam Kenneth <yotamke@mellanox.com>
Signed-off-by: Shachar Raindel <raindel@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c