From: Amir Vadai Date: Mon, 22 Dec 2014 08:21:57 +0000 (+0200) Subject: net/mlx4_en: Doorbell is byteswapped in Little Endian archs X-Git-Tag: fixes-v4.0-rc1~357^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=492f5add4be84652bbe13da8a250d60c6856a5c5;p=pandora-kernel.git net/mlx4_en: Doorbell is byteswapped in Little Endian archs iowrite32() will byteswap it's argument on big endian archs. iowrite32be() will byteswap on little endian archs. Since we don't want to do this unnecessary byteswap on the fast path, doorbell is stored in the NIC's native endianness. Using the right iowrite() according to the arch endianness. CC: Wei Yang CC: David Laight Fixes: 6a4e812 ("net/mlx4_en: Avoid calling bswap in tx fast path") Signed-off-by: Amir Vadai Signed-off-by: David S. Miller --- Reading git-diff-tree failed