Commit dcf353b1 authored by Jack Morgenstein's avatar Jack Morgenstein Committed by David S. Miller

mlx4_core: fix bug in modify_cq wrapper for resize flow.

The actual FW command is called in procedure "handle_resize".
Code incorrectly invoked the FW command again (in good flow), in
the modify_cq wrapper function.

Fix by skipping second FW invocation unconditionally for resize.
Signed-off-by: default avatarJack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 78315457
...@@ -2255,8 +2255,7 @@ int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave, ...@@ -2255,8 +2255,7 @@ int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave,
if (vhcr->op_modifier == 0) { if (vhcr->op_modifier == 0) {
err = handle_resize(dev, slave, vhcr, inbox, outbox, cmd, cq); err = handle_resize(dev, slave, vhcr, inbox, outbox, cmd, cq);
if (err) goto ex_put;
goto ex_put;
} }
err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd); err = mlx4_DMA_wrapper(dev, slave, vhcr, inbox, outbox, cmd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment