From: Marcel Apfelbaum Date: Tue, 13 Dec 2011 04:16:56 +0000 (+0000) Subject: mlx4_core: mtts resources units changed to offset X-Git-Tag: v3.3-rc1~182^2~228 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b8fb2867ca2736a715a88067fd0ec2904777cbe;p=pandora-kernel.git mlx4_core: mtts resources units changed to offset In the previous implementation mtts are managed by: 1. order - log(mtt segments), 'mtt segment' groups several mtts together. 2. first_seg - segment location relative to mtt table. In the current implementation: 1. order - log(mtts) rather than segments 2. offset - mtt index in mtt table Note: The actual mtt allocation is made in segments but it is transparent to callers. Rational: The mtt resource holders are not interested on how the allocation of mtt is done, but rather on how they will use it. Signed-off-by: Marcel Apfelbaum Reviewed-by: Jack Morgenstein Signed-off-by: David S. Miller --- Reading git-diff-tree failed