From: Roland Dreier Date: Fri, 25 Jan 2008 22:15:34 +0000 (-0800) Subject: IB/mlx4: Micro-optimize mlx4_ib_poll_one() X-Git-Tag: v2.6.25-rc1~1234^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3226184af6c13c9d5d38f13f0ef8e03f718bbf7;p=pandora-kernel.git IB/mlx4: Micro-optimize mlx4_ib_poll_one() Rather than byte-swapping cqe->g_mlpath_rqpn each time we extract a field from it, byte-swap it once into a temporary variable. This results in smaller, better code -- eg, on 32-bit x86: add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-5 (-5) function old new delta mlx4_ib_poll_cq 1188 1183 -5 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed