[PATCH resend] net: mvneta: Fix big endian issue in mvneta_txq_desc_csum()

David Miller davem at davemloft.net
Tue Jul 8 20:52:08 PDT 2014


From: Thomas Fitzsimmons <fitzsim at fitzsim.org>
Date: Tue, 08 Jul 2014 19:44:07 -0400

> This commit fixes the command value generated for CSUM calculation
> when running in big endian mode.  The Ethernet protocol ID for IP was
> being unconditionally byte-swapped in the layer 3 protocol check (with
> swab16), which caused the mvneta driver to not function correctly in
> big endian mode.  This patch byte-swaps the ID conditionally with
> htons.
> 
> Cc: <stable at vger.kernel.org> # v3.13+
> Signed-off-by: Thomas Fitzsimmons <fitzsim at fitzsim.org>
> ---
> The mvneta driver existed prior to v3.13, but it has only supported big
> endian from v3.13 onward.  If it's accepted, this patch needs to be
> backported for stable only as far back as v3.13.

Applied and queued up for -stable, thanks.



More information about the linux-arm-kernel mailing list