[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20141222.163411.1556501830218972086.davem@davemloft.net>
Date: Mon, 22 Dec 2014 16:34:11 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: amirv@...lanox.com
Cc: netdev@...r.kernel.org, ogerlitz@...lanox.com,
yevgenyp@...lanox.com, weiyang@...ux.vnet.ibm.com,
david.laight@...lab.com
Subject: Re: [PATCH net V1] net/mlx4_en: Doorbell is byteswapped in Little
Endian archs
From: Amir Vadai <amirv@...lanox.com>
Date: Mon, 22 Dec 2014 10:21:57 +0200
> 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@...ux.vnet.ibm.com>
> CC: David Laight <david.laight@...lab.com>
> Fixes: 6a4e812 ("net/mlx4_en: Avoid calling bswap in tx fast path")
> Signed-off-by: Amir Vadai <amirv@...lanox.com>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists