summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@fitzsim.org>2014-07-09 03:44:07 +0400
committerJiri Slaby <jslaby@suse.cz>2015-04-09 15:13:50 +0300
commit12ea1092de881c1634d0ddc1e6004b1ae848895b (patch)
tree01190e34f9f58c3b7ae488b92f3e1b86f34d2e93 /include/net
parentfa53db808062ff867f0cae5348e427ad9845f3d9 (diff)
downloadlinux-12ea1092de881c1634d0ddc1e6004b1ae848895b.tar.xz
net: mvneta: Fix big endian issue in mvneta_txq_desc_csum()
commit 0a1985879437d14bda8c90d0dae3455c467d7642 upstream. 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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions