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: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7831545732
commit
dcf353b170
|
@ -2255,7 +2255,6 @@ int mlx4_MODIFY_CQ_wrapper(struct mlx4_dev *dev, int slave,
|
|||
|
||||
if (vhcr->op_modifier == 0) {
|
||||
err = handle_resize(dev, slave, vhcr, inbox, outbox, cmd, cq);
|
||||
if (err)
|
||||
goto ex_put;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue