]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7e38b191cdb75def4c522455583b3e435242c52
treee59a34d99b3bed692516cf5aa02b454626e9e970
parentee5f2763d1d05551d6d57d69954b165f5c97cee5
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