summaryrefslogtreecommitdiff
path: root/arch/mips/lib
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@fitzsim.org>2014-07-08 19:44:07 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-28 08:06:00 -0700
commitb4ca5bfee380af0bd89683bd73485357dd22dab3 (patch)
treef414d0d42f9ec33bfddaf3c3a25413851c16169f /arch/mips/lib
parentbb2e73b108e6140acc8572a28683cf6f3e20cf96 (diff)
downloadlinux-stable-b4ca5bfee380af0bd89683bd73485357dd22dab3.tar.gz
linux-stable-b4ca5bfee380af0bd89683bd73485357dd22dab3.tar.bz2
linux-stable-b4ca5bfee380af0bd89683bd73485357dd22dab3.zip
net: mvneta: Fix big endian issue in mvneta_txq_desc_csum()
[ Upstream commit 0a1985879437d14bda8c90d0dae3455c467d7642 ] 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@vger.kernel.org> # v3.13+ Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/lib')
0 files changed, 0 insertions, 0 deletions