]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Fix wrong mask and error flow for the update-qp command
authorOr Gerlitz <ogerlitz@mellanox.com>
Mon, 2 Mar 2015 16:22:15 +0000 (18:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2015 20:27:19 +0000 (15:27 -0500)
commit059b2a2d44af413dc2f877bab8adede6c0571b6c
tree9ab0d31f313444d0ec99563705e4a78435557c78
parentf1f66217b0d57a1d67db79e863baf2e283dacef1
net/mlx4_core: Fix wrong mask and error flow for the update-qp command

The bit mask for currently supported driver features (MLX4_UPDATE_QP_SUPPORTED_ATTRS)
of the update-qp command was defined twice (using enum value and pre-processor
define directive) and wrong.

The return value of the call to mlx4_update_qp() from within the SRIOV
resource-tracker was wrongly voided down.

Fix both issues.

issue: none
Fixes: b069578302f4 ('net/mlx4: Set vlan stripping policy by the right command')
Fixes: 07b6a7dbc78d ('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>
drivers/net/ethernet/mellanox/mlx4/qp.c
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
include/linux/mlx4/qp.h