]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: fix bug in modify_cq wrapper for resize flow.
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 7 Mar 2012 05:56:35 +0000 (05:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2012 08:28:01 +0000 (00:28 -0800)
commit74170fafd1bc37176e360330e1b13a0b7706453f
treec7733dca7ad0bd49b37660160be857b04bec0b84
parent8ddea4251bec819894b0a5854de67635e6b24622
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>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c