From: Majd Dibbiny Date: Wed, 18 Mar 2015 14:51:37 +0000 (+0200) Subject: IB/mlx4: Saturate RoCE port PMA counters in case of overflow X-Git-Tag: omap-for-v4.2/o2_dc~296^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61a3855bb726cbb062ef02a31a832dea455456e0;p=pandora-kernel.git IB/mlx4: Saturate RoCE port PMA counters in case of overflow For RoCE ports, we set the u32 PMA values based on u64 HCA counters. In case of overflow, according to the IB spec, we have to saturate a counter to its max value, do that. Fixes: c37791349cc7 ('IB/mlx4: Support PMA counters for IBoE') Signed-off-by: Majd Dibbiny Signed-off-by: Eran Ben Elisha Signed-off-by: Hadar Hen Zion Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed