diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2014-09-11 14:11:18 +0300 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-09-22 09:46:53 -0700 |
commit | d24d9f43384b5933867a5786934e130efa8b5c92 (patch) | |
tree | 2660b2bea5a32827a131d2cf30bb5c6ddd04ed70 /drivers/infiniband | |
parent | 3e0629cb6c0518423c9e2671bbe8ec15dde5dcaf (diff) | |
download | op-kernel-dev-d24d9f43384b5933867a5786934e130efa8b5c92.zip op-kernel-dev-d24d9f43384b5933867a5786934e130efa8b5c92.tar.gz |
IB/mlx4: Don't update QP1 in native mode
For native functions (non-SR-IOV), there's no reason to update
the smac_index, as QP1 is a GSI QP.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-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 657ce0f..6ad7f7a 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, atomic64_set(&ibdev->iboe.mac[port - 1], new_smac); + /* no need for update QP1 and mac registration in non-SRIOV */ + if (!mlx4_is_mfunc(ibdev->dev)) + return; + mutex_lock(&ibdev->qp1_proxy_lock[port - 1]); qp = ibdev->qp1_proxy[port - 1]; if (qp) { |