RDMA/rtrs-clt: Add a minimum latency multipath policy
authorGioh Kim <gi-oh.kim@cloud.ionos.com>
Wed, 7 Apr 2021 11:34:41 +0000 (13:34 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 13 Apr 2021 22:44:54 +0000 (19:44 -0300)
commitdc3b66a0ce70ec40fd60884a835b9ef976765914
treed9273d7889cbf5d7614a954ab41859196fff418f
parentfe73f96e7b04412c4b3c8670fc9cd600e552aa9d
RDMA/rtrs-clt: Add a minimum latency multipath policy

This patch adds new multipath policy: min-latency.  Client checks the
latency of each path when it sends the heart-beat.  And it sends IO to the
path with the minimum latency.

Link: https://lore.kernel.org/r/20210407113444.150961-2-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-clt.c
drivers/infiniband/ulp/rtrs/rtrs-clt.h
drivers/infiniband/ulp/rtrs/rtrs-pri.h
drivers/infiniband/ulp/rtrs/rtrs.c