summaryrefslogtreecommitdiffstats
path: root/drivers/net/caif
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2014-12-22 09:21:57 +0100
committerDavid S. Miller <davem@davemloft.net>2014-12-22 22:33:10 +0100
commit492f5add4be84652bbe13da8a250d60c6856a5c5 (patch)
tree2be9bbac102868cb3d3bcac57bcc60ed222a4395 /drivers/net/caif
parent8139too: Add netif_napi_del in the driver (diff)
downloadlinux-492f5add4be84652bbe13da8a250d60c6856a5c5.tar.xz
linux-492f5add4be84652bbe13da8a250d60c6856a5c5.zip
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/net/caif')
0 files changed, 0 insertions, 0 deletions