diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2020-01-27 12:32:07 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-27 13:05:26 -0800 |
commit | fbfcfcf5b03b4fddb4f00a3e8721cba07fc5343f (patch) | |
tree | 9aabda5cd95748b4a0409151f096e70fa7f5b8f7 /pkg/tcpip/header | |
parent | 13c1f38dfa215ab3e3cc70642721f55ab226d5b7 (diff) |
Update ChecksumVVWithoffset to use unrolled version.
Fixes #1656
PiperOrigin-RevId: 291777279
Diffstat (limited to 'pkg/tcpip/header')
-rw-r--r-- | pkg/tcpip/header/checksum.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/header/checksum.go b/pkg/tcpip/header/checksum.go index 204285576..14a4b2b44 100644 --- a/pkg/tcpip/header/checksum.go +++ b/pkg/tcpip/header/checksum.go @@ -213,7 +213,7 @@ func ChecksumVVWithOffset(vv buffer.VectorisedView, initial uint16, off int, siz } v = v[:l] - sum, odd = calculateChecksum(v, odd, uint32(sum)) + sum, odd = unrolledCalculateChecksum(v, odd, uint32(sum)) size -= len(v) if size == 0 { |