]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedafe328de065dcd0ed21e414468251acbed024e
tree304f540bab2412ce662ab35b3f7d9d08ed2e42f6
parentbbc9f602c58e29f09083f8622a0ff0325d209ab9
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