From: Matan Barak Date: Wed, 10 Sep 2014 13:41:55 +0000 (+0300) Subject: net/mlx4: Avoid dealing with MAC index in UPDATE_QP wrapper if not needed X-Git-Tag: fixes-for-v3.18-merge-window~87^2~41^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7834758e6f33da401f584035f1b6b62d0672aab;p=pandora-kernel.git net/mlx4: Avoid dealing with MAC index in UPDATE_QP wrapper if not needed The current wrapper implementation of the UPDATE_QP command tries to get the MAC index, even if MAC wasn't set by the VF. Fix it up to only handle the MAC field if it's valid. Fixes: ce8d9e0 ('net/mlx4_core: Add UPDATE_QP SRIOV wrapper support') Signed-off-by: Matan Barak Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed