From: Saeed Mahameed Date: Sun, 2 Nov 2014 14:26:13 +0000 (+0200) Subject: net/mlx4_core: Prevent VF from changing port configuration X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~294^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e8066999800d90d52af5c84ac49ebf683d14cdc;p=pandora-kernel.git net/mlx4_core: Prevent VF from changing port configuration Added wrapper to the ACCESS_REG command for handling guest HW registers access, preventing write operations, but do allow reads. This will prevent SRIOV guests to change port PTYS configuration, such as speed/advertised link modes. Fixes: adbc7ac5c15e ('net/mlx4_core: Introduce ACCESS_REG CMD [...]') Signed-off-by: Saeed Mahameed Signed-off-by: Amir Vadai Signed-off-by: David S. Miller --- Reading git-diff-tree failed