diff options
author | Amir Vadai <amirv@mellanox.com> | 2014-12-22 10:21:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-22 16:33:10 -0500 |
commit | 492f5add4be84652bbe13da8a250d60c6856a5c5 (patch) | |
tree | 2be9bbac102868cb3d3bcac57bcc60ed222a4395 /drivers/leds | |
parent | ea3c9e13afe739f1ff31130cea57084cfe8c5dcd (diff) |
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 <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>
Diffstat (limited to 'drivers/leds')
0 files changed, 0 insertions, 0 deletions