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)
commitdcf353b17007841f91e1735e33790508c84c9ad0
treec7733dca7ad0bd49b37660160be857b04bec0b84
parent783154573236f46b730b2eea17d2e6e04bdb3251
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