Comment 21 for bug 1658576

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/28111
Committed: http://github.org/Juniper/contrail-vrouter/commit/4e60e239186aff64bb6285ead622275d7fc37160
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 4e60e239186aff64bb6285ead622275d7fc37160
Author: Anand H. Krishnan <email address hidden>
Date: Mon Jan 23 10:15:39 2017 +0530

Calculate checksum only for valid IP length

__skb_checksum_complete calculates checksum for the whole packet,
including the ethernet padding if any. This will result in wrong
checksum verification at the receiving end and thus a wrong packet
drop.

Use __skb_checksum_complete_head instead and pass the length
calculated from IP header as the size over which checksum has to
be calculated.

Change-Id: I48efbb66bc171c590784d6f1931be9abd81198ae
Closes-Bug: #1658576