diff options
author | Thomas Fitzsimmons <fitzsim@fitzsim.org> | 2014-07-09 01:44:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-09 05:51:36 +0200 |
commit | 0a1985879437d14bda8c90d0dae3455c467d7642 (patch) | |
tree | 2fd6cd9468c0e2ac1221c673a33d8c0b2c26f024 /net/netlink/af_netlink.c | |
parent | net: mvneta: fix operation in 10 Mbit/s mode (diff) | |
download | linux-0a1985879437d14bda8c90d0dae3455c467d7642.tar.xz linux-0a1985879437d14bda8c90d0dae3455c467d7642.zip |
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: <stable@vger.kernel.org> # v3.13+
Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink/af_netlink.c')
0 files changed, 0 insertions, 0 deletions