mlx4: fix QP tree trashing
authorEugenia Emantayev <eugenia@mellanox.co.il>
Wed, 15 Feb 2012 06:22:57 +0000 (06:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2012 19:50:16 +0000 (14:50 -0500)
commit2531188b476c83fe29b1d3498a76e329f4b6f16b
tree304f540bab2412ce662ab35b3f7d9d08ed2e42f6
parent75c6062cb797afe624d65c955eb867035622e782
mlx4: fix QP tree trashing

When adding new unicast steer entry, before moving qp to state ready,
actually before calling mlx4_RST2INIT_QP_wrapper(), there were added
a lot of entries with local_qpn=0 into radix tree.
This fact impacted the get_res() function and proper functioning
of resource tracker in addition to adding trash entries into radix tree.

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.co.il>
Reviewed-by: Yevgeny Petrilin <yevgenyp@melllanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c