linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yi Zhang <yi.zhang@redhat.com>
To: bvanassche@acm.org, shinichiro.kawasaki@wdc.com
Cc: linux-block@vger.kernel.org
Subject: [PATCH blktests] common/multipath-over-rdma: fix has_soft_rdma checking when mlx card as netdev
Date: Wed, 12 Oct 2022 01:24:54 +0800	[thread overview]
Message-ID: <20221011172454.310389-1-yi.zhang@redhat.com> (raw)

The mlx dev will be ignored in has_soft_rdma when it was used as netdev,
add more filter keywords.

link mlx5_0/1 state ACTIVE physical_state LINK_UP netdev enp33s0f0np0
link mlx5_1/1 state DOWN physical_state DISABLED netdev enp33s0f1np1

Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
---
 common/multipath-over-rdma | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/multipath-over-rdma b/common/multipath-over-rdma
index fb820d6..6b9629a 100644
--- a/common/multipath-over-rdma
+++ b/common/multipath-over-rdma
@@ -387,7 +387,7 @@ all_primary_gids() {
 # Check whether or not an rdma_rxe or siw instance has been associated with
 # network interface $1.
 has_soft_rdma() {
-	rdma link | grep -q " netdev $1[[:blank:]]*\$"
+	rdma link | grep -q "link $1.*netdev $1[[:blank:]]*\$"
 }
 
 # Load the rdma_rxe or siw kernel module and associate it with all network
-- 
2.34.1


             reply	other threads:[~2022-10-11 17:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11 17:24 Yi Zhang [this message]
2022-10-21  7:53 ` [PATCH blktests] common/multipath-over-rdma: fix has_soft_rdma checking when mlx card as netdev Shinichiro Kawasaki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221011172454.310389-1-yi.zhang@redhat.com \
    --to=yi.zhang@redhat.com \
    --cc=bvanassche@acm.org \
    --cc=linux-block@vger.kernel.org \
    --cc=shinichiro.kawasaki@wdc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).