]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Extract sockaddr from struct rdma_cm_id
authorChuck Lever <chuck.lever@oracle.com>
Fri, 21 Feb 2020 22:01:00 +0000 (17:01 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 27 Mar 2020 14:47:25 +0000 (10:47 -0400)
commit74cae19bf584533d75198a4fdc3598c46e24776d
tree288a80a39e3e99712928a6ec4b432df7c4f1f208
parent11300f6f3542b7b77158bb5f8484b8f36a276a8e
xprtrdma: Extract sockaddr from struct rdma_cm_id

rpcrdma_cm_event_handler() is always passed an @id pointer that is
valid. However, in a subsequent patch, we won't be able to extract
an r_xprt in every case. So instead of using the r_xprt's
presentation address strings, extract them from struct rdma_cm_id.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/trace/events/rpcrdma.h
net/sunrpc/xprtrdma/verbs.c