# Re: \[PATCH blktests 3/3\] rdma: Use rdma link instead of /sys/class/infiniband/\*/parent

- From: Omar Sandoval \<osandov@osandov.com\>
- Date: 2021-02-03 16:40:51 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/02/6400788
- Thread: https://ratatoskr.run/linux-block/2021/01/6400536/t.md

```text
On Mon, Jan 25, 2021 at 08:45:19PM -0800, Bart Van Assche wrote:
> The approach of verifying whether or not an RDMA interface is associated
> with the rdma_rxe interface by looking up its parent device is deprecated
> and will be removed soon from the Linux kernel. Hence this patch that uses
> the rdma link command instead.
> 
> Cc: Jason Gunthorpe <jgg@nvidia.com>
> Cc: Yi Zhang <redacted>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
> ---
>  common/multipath-over-rdma | 111 +++++++++++--------------------------
>  tests/srp/rc               |   9 +--
>  2 files changed, 32 insertions(+), 88 deletions(-)

I think we need to add _have_program rdma checks to srp and nvmeof-mp,
right? The first two patches look fine, I'll merge those.
```
