]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9a405413749f2f5ab486c8aa2c22de77eed91eb
tree0514552489d077fa1b0c493c3bc6b5919fcc2261
parent9487e0c3debf31b8581e26f8aff45aec96f55b79
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