Thomas Fitzsimmons 0a19858794 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>
2014-07-08 20:51:36 -07:00
..
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 18:02:24 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-06-11 15:44:29 -07:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-13 17:43:20 -04:00
2014-05-22 15:50:13 -04:00
2014-04-21 14:58:48 -04:00
2014-05-14 15:11:22 -04:00