mlx4_core: Fix error flow in the flow steering wrapper
authorHadar Hen Zion <hadarh@mellanox.com>
Thu, 6 Dec 2012 17:11:58 +0000 (17:11 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 19 Dec 2012 17:44:00 +0000 (09:44 -0800)
The error flow of the flow steering wrapper had a typo which caused
the wrong firmware command to be called, fix it.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c

index 0b3f2d27d57174e35077d24c7c911ee764173370..561ed2a22a1708448a40accc54ef72bcbff036c3 100644 (file)
@@ -3128,7 +3128,7 @@ int mlx4_QP_FLOW_STEERING_ATTACH_wrapper(struct mlx4_dev *dev, int slave,
                mlx4_err(dev, "Fail to add flow steering resources.\n ");
                /* detach rule*/
                mlx4_cmd(dev, vhcr->out_param, 0, 0,
-                        MLX4_QP_FLOW_STEERING_ATTACH, MLX4_CMD_TIME_CLASS_A,
+                        MLX4_QP_FLOW_STEERING_DETACH, MLX4_CMD_TIME_CLASS_A,
                         MLX4_CMD_NATIVE);
        }
 err_put: