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

- From: Omar Sandoval \<osandov@osandov.com\>
- Date: 2021-03-07 20:41:25 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/03/6401273
- Thread: https://ratatoskr.run/linux-block/2021/02/6401131/t.md

```text
On Sun, Feb 28, 2021 at 02:34:03PM -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>
> ---
> v2: Added a _have_program check for 'rdma' as requested by Omar.
> ---
>  common/multipath-over-rdma | 111 +++++++++++--------------------------
>  tests/nvmeof-mp/rc         |   2 +-
>  tests/srp/rc               |  12 +---
>  3 files changed, 35 insertions(+), 90 deletions(-)

Thanks, applied.
```
