From: Matan Barak Date: Sun, 4 May 2014 14:07:23 +0000 (+0300) Subject: net/mlx4_core: Fix slave id computation for single port VF X-Git-Tag: omap-for-v3.16/fixes-against-rc1~214^2~7^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0254bc8205195c96b47abe33c67f8ccd2f2dad69;p=pandora-kernel.git net/mlx4_core: Fix slave id computation for single port VF The code that deals with computing the slave id based on a given GID gave wrong results when the number of single port VFs wasn't the same for port 1 vs. port 2 and the relevant VF is single ported on port 2. As a result, incoming CM MADs were dispatched to the wrong VF. Fixed that and added documentation to clarify the computation steps. Fixes: 449fc48 ('net/mlx4: Adapt code for N-Port VF') Signed-off-by: Matan Barak Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed