RDMA/rtrs: New function converting rtrs_addr to string
authorGioh Kim <gi-oh.kim@cloud.ionos.com>
Thu, 25 Mar 2021 15:32:59 +0000 (16:32 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Apr 2021 18:49:47 +0000 (15:49 -0300)
commit8e86499e6c1159afd496c1385f38350cf5701f9d
treee59a34d99b3bed692516cf5aa02b454626e9e970
parent57dae8baa6388af4a1e9a58cb29f9c08375a09fa
RDMA/rtrs: New function converting rtrs_addr to string

There is common code converting addresses of source machine and
destination machine to a string.  We already have a struct rtrs_addr to
store two addresses.  This patch introduces a new function that converts
two addresses into one string with struct rtrs_addr.

Link: https://lore.kernel.org/r/20210325153308.1214057-14-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-clt-sysfs.c
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c
drivers/infiniband/ulp/rtrs/rtrs.c
drivers/infiniband/ulp/rtrs/rtrs.h