summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2020-01-27 12:32:07 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-27 13:05:26 -0800
commitfbfcfcf5b03b4fddb4f00a3e8721cba07fc5343f (patch)
tree9aabda5cd95748b4a0409151f096e70fa7f5b8f7 /pkg/tcpip
parent13c1f38dfa215ab3e3cc70642721f55ab226d5b7 (diff)
Update ChecksumVVWithoffset to use unrolled version.
Fixes #1656 PiperOrigin-RevId: 291777279
Diffstat (limited to 'pkg/tcpip')
-rw-r--r--pkg/tcpip/header/checksum.go2
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 {