RDMA/rtrs-srv: Report temporary sessname for error message
authorGioh Kim <gi-oh.kim@cloud.ionos.com>
Thu, 25 Mar 2021 15:33:02 +0000 (16:33 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Apr 2021 18:59:46 +0000 (15:59 -0300)
commit88e2f1056452383a36387fd088889b4b4c70c706
tree72ab084f06d98f5f28a866d7d94330bae3ed8aac
parent8e86499e6c1159afd496c1385f38350cf5701f9d
RDMA/rtrs-srv: Report temporary sessname for error message

Before receiving the session name, the error message cannot include any
information about which connection generates the error.

This patch stores the addresses of source and target in the sessname field
to show which generates the error. That field will be over-written
when receiving the session name from client.

Link: https://lore.kernel.org/r/20210325153308.1214057-17-gi-oh.kim@ionos.com
Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-srv.c