net: macb: initialize checksum when using checksum offloading
authorHelmut Buchsbaum <helmut.buchsbaum@gmail.com>
Sun, 4 Sep 2016 16:09:47 +0000 (18:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2016 20:43:39 +0000 (13:43 -0700)
commit007e4ba3ee137f4700f39aa6dbaf01a71047c5f6
tree0514552489d077fa1b0c493c3bc6b5919fcc2261
parent03c2778a938aaba0893f6d6cdc29511d91a79848
net: macb: initialize checksum when using checksum offloading

I'm still struggling to get this fix right..

Changes since v2:
 - do not blindly modify SKB contents according to Dave's legitimate
   objection

Changes since v1:
 - dropped disabling HW checksum offload for Zynq
 - initialize checksum similar to net/ethernet/freescale/fec_main.c

-- >8 --
MACB/GEM needs the checksum field initialized to 0 to get correct
results on transmit in all cases, e.g. on Zynq, UDP packets with
payload <= 2 otherwise contain a wrong checksums.

Signed-off-by: Helmut Buchsbaum <helmut.buchsbaum@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c