diff options
author | Yossi Kuperman <yossiku@mellanox.com> | 2017-08-01 12:49:07 +0300 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-08-02 11:00:15 +0200 |
commit | a9b28c2bf05d9d9998d5d3c6453fd75bc4cf8a6d (patch) | |
tree | d0ccdee200b0deb6b60bc149a431765265526d03 /block/blk-flush.c | |
parent | e9cba69448df7686e1c35e74be48fc715d41ac45 (diff) | |
download | linux-a9b28c2bf05d9d9998d5d3c6453fd75bc4cf8a6d.tar.gz linux-a9b28c2bf05d9d9998d5d3c6453fd75bc4cf8a6d.tar.bz2 linux-a9b28c2bf05d9d9998d5d3c6453fd75bc4cf8a6d.zip |
esp6: Fix RX checksum after header pull
Both ip6_input_finish (non-GRO) and esp6_gro_receive (GRO) strip
the IPv6 header without adjusting skb->csum accordingly. As a
result CHECKSUM_COMPLETE breaks and "hw csum failure" is written
to the kernel log by netdev_rx_csum_fault (dev.c).
Fix skb->csum by substracting the checksum value of the pulled IPv6
header using a call to skb_postpull_rcsum.
This affects both transport and tunnel modes.
Note that the fix occurs far from the place that the header was
pulled. This is based on existing code, see:
ipv6_srh_rcv() in exthdrs.c and rawv6_rcv() in raw.c
Signed-off-by: Yossi Kuperman <yossiku@mellanox.com>
Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'block/blk-flush.c')
0 files changed, 0 insertions, 0 deletions