]> www.infradead.org Git - users/willy/xarray.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)
commit745b734c9bb80559b8ca64ae688901afefc1c3fd
tree288a80a39e3e99712928a6ec4b432df7c4f1f208
parent93aa8e0a9de80e1df2be17158a3469285e572b39
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