common/multipath-over-rdma: fix has_soft_rdma checking when mlx card as netdev
PATCH 1/1 common/multipath-over-rdma: fix has_soft_rdma checking when mlx card as netdev
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
--- common/multipath-over-rdma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/multipath-over-rdma +1 -1
@@ -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
Signature · 1 line
2.34.1
Quoted 16 lines · Yi Zhang
The mlx dev will be ignored in
has_soft_rdmawhen it was used as netdev, add more filter keywords.link mlx5_0/1 state ACTIVE
physical_stateLINK_UPnetdev enp33s0f0np0 link mlx5_1/1 state DOWNphysical_stateDISABLED netdev enp33s0f1np1Signed-off-by Yi Zhang <[email protected]>--- common/multipath-over-rdma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)common/multipath-over-rdma +0
-0
common/multipath-over-rdma all_primary_gids() { · line 391
Quoted 6 lines
common/multipath-over-rdma +1
-1@@ -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:]]*\$" }
Question, what value do you expect in $1 here for mlx devices?
To match with the rdma link command output below, 1st $1 should be "mlx5", and 2nd $1 should be "enp33s0f0np0", but $1 can not be both. ??
link mlx5_0/1 state ACTIVE physical_state LINK_UP netdev enp33s0f0np0
Signature · 1 line
Shin'ichiro Kawasaki