mlx4: fix QP tree trashing
authorEugenia Emantayev <eugenia@mellanox.co.il>
Tue, 14 Feb 2012 06:37:22 +0000 (06:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2012 19:11:58 +0000 (14:11 -0500)
commit0ee9f1dd7b910f712aa56133973d165d42a81707
treeb46440525f6f5cbefd331fcbfa7addbc964764bd
parent58a30d6a3c2397f18a826f401e0f0e61e8868f19
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