From: Eli Cohen Date: Thu, 9 Feb 2012 16:10:06 +0000 (+0200) Subject: mlx4: Enforce device max FMR maps in FMR alloc X-Git-Tag: v3.4-rc1~169^2~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5bbe892da9441835cb6fece26d9bbd95fc820be;p=pandora-kernel.git mlx4: Enforce device max FMR maps in FMR alloc ConnectX devices have a limit on the number of mappings that can be done on an FMR before having to call sync_tpt. The current mlx4_ib driver reports the limit correctly in max_map_per_fmr in .query_device(), but mlx4_core doesn't check it when actually allocating FMRs. Add a max_fmr_maps field to struct mlx4_caps and enforce this maximum value on FMR allocations. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed