Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
	}