diff options
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 657ce0f810fd..6ad7f7a0e464 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c | |||
@@ -1645,6 +1645,10 @@ static void mlx4_ib_update_qps(struct mlx4_ib_dev *ibdev, | |||
1645 | 1645 | ||
1646 | atomic64_set(&ibdev->iboe.mac[port - 1], new_smac); | 1646 | atomic64_set(&ibdev->iboe.mac[port - 1], new_smac); |
1647 | 1647 | ||
1648 | /* no need for update QP1 and mac registration in non-SRIOV */ | ||
1649 | if (!mlx4_is_mfunc(ibdev->dev)) | ||
1650 | return; | ||
1651 | |||
1648 | mutex_lock(&ibdev->qp1_proxy_lock[port - 1]); | 1652 | mutex_lock(&ibdev->qp1_proxy_lock[port - 1]); |
1649 | qp = ibdev->qp1_proxy[port - 1]; | 1653 | qp = ibdev->qp1_proxy[port - 1]; |
1650 | if (qp) { | 1654 | if (qp) { |