From: Thomas Fitzsimmons Date: Tue, 8 Jul 2014 23:44:07 +0000 (-0400) Subject: net: mvneta: Fix big endian issue in mvneta_txq_desc_csum() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~289^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a1985879437d14bda8c90d0dae3455c467d7642;p=pandora-kernel.git net: mvneta: Fix big endian issue in mvneta_txq_desc_csum() 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: # v3.13+ Signed-off-by: Thomas Fitzsimmons Signed-off-by: David S. Miller --- Reading git-diff-tree failed