summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2014-12-22 10:21:57 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-27 08:29:33 -0800
commitbfd6ab619cb8e9944c9d8446604b1c24ac0b686a (patch)
treecfa85f65f1952d9a39d815c57f7c2d847fa81d64 /net
parenta67fa81c8702d3ba8f35329ed12869f04036ee8b (diff)
net/mlx4_en: Doorbell is byteswapped in Little Endian archs
[ Upstream commit 492f5add4be84652bbe13da8a250d60c6856a5c5 ] 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 <weiyang@linux.vnet.ibm.com> CC: David Laight <david.laight@aculab.com> Fixes: 6a4e812 ("net/mlx4_en: Avoid calling bswap in tx fast path") Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions