From: Eli Cohen Date: Wed, 11 Sep 2013 13:35:22 +0000 (+0300) Subject: IB/mlx5: Fix send work queue size calculation X-Git-Tag: v3.12-rc6~20^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b125a54bfd7734a44253d2f2909a3c609768c1ec;p=pandora-kernel.git IB/mlx5: Fix send work queue size calculation 1. Make sure wqe_cnt does not exceed the limit published by firmware. 2. There is no requirement that the number of outstanding work requests will be a power of two. Remove the ilog2 in the calculation of sq.max_post to fix that. 3. Add case for IB_QPT_XRC_TGT in sq_overhead and return 0 as XRC target QPs do not have a send queue. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed