commit | b7834758e6f33da401f584035f1b6b62d0672aab | [log] [tgz] |
---|---|---|
author | Matan Barak <matanb@mellanox.com> | Wed Sep 10 16:41:55 2014 +0300 |
committer | David S. Miller <davem@davemloft.net> | Wed Sep 10 15:21:34 2014 -0700 |
tree | dab363af1a4d20eb424b80e05f0028ada65e3dbe | |
parent | 311be98a3cca6469adf369714d689f9bbf286190 [diff] |
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 <matanb@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>