summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorEugenia Emantayev <eugenia@mellanox.co.il>2012-02-14 06:37:22 +0000
committerDavid S. Miller <davem@davemloft.net>2012-02-14 14:11:58 -0500
commit0ee9f1dd7b910f712aa56133973d165d42a81707 (patch)
treeb46440525f6f5cbefd331fcbfa7addbc964764bd /drivers/net/ethernet
parent58a30d6a3c2397f18a826f401e0f0e61e8868f19 (diff)
downloadblackbird-op-linux-0ee9f1dd7b910f712aa56133973d165d42a81707.tar.gz
blackbird-op-linux-0ee9f1dd7b910f712aa56133973d165d42a81707.zip
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/resource_tracker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
index 1420dbc947c2..629cc3018746 100644
--- a/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
+++ b/drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
@@ -374,6 +374,7 @@ static struct res_common *alloc_qp_tr(int id)
ret->com.res_id = id;
ret->com.state = RES_QP_RESERVED;
+ ret->local_qpn = id;
INIT_LIST_HEAD(&ret->mcg_list);
spin_lock_init(&ret->mcg_spl);
OpenPOWER on IntegriCloud