From: Jack Morgenstein Date: Thu, 11 Sep 2014 11:11:20 +0000 (+0300) Subject: IB/mlx4: Fix VF mac handling in RoCE X-Git-Tag: fixes-for-v3.18-merge-window~78^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25476b0209b2e48dfb689e1b4cf7278875082b1f;p=pandora-kernel.git IB/mlx4: Fix VF mac handling in RoCE We had several problems here. First, a race condition on QP1 mac handling between mlx4_ib_update_qps and mlx4_ib_modify_qp, which is fixed by taking the qp mutex in mlx4_ib_update_qps. Also, qp->pri.smac_port was not updated in mlx4_ib_update_qps. Last, in __mlx4_ib_modify_qp we did not properly handle the case where the mac is zero, but port is non-zero. Signed-off-by: Jack Morgenstein Signed-off-by: Or Gerlitz Signed-off-by: Roland Dreier --- Reading git-diff-tree failed