summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp/dispatcher.go
diff options
context:
space:
mode:
authorNick Brown <nickbrow@google.com>2021-04-19 16:41:56 -0700
committergVisor bot <gvisor-bot@google.com>2021-04-19 16:43:30 -0700
commit7bfc76d946b6c3f02fc32831ddc282ac2816d5ed (patch)
tree606ee32bcf8b932d9675d18187cfeced3873105a /pkg/tcpip/transport/tcp/dispatcher.go
parent276ff149a4555b69c4c99fdcd4e1a22ccc8b9463 (diff)
De-duplicate TCP state in TCPEndpointState vs tcp.endpoint
This change replaces individual private members in tcp.endpoint with a single private TCPEndpointState member. Some internal substructures within endpoint (receiver, sender) have been broken into a public substructure (which is then copied into the TCPEndpointState returned from completeState()) alongside other private fields. Fixes #4466 PiperOrigin-RevId: 369329514
Diffstat (limited to 'pkg/tcpip/transport/tcp/dispatcher.go')
-rw-r--r--pkg/tcpip/transport/tcp/dispatcher.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/dispatcher.go b/pkg/tcpip/transport/tcp/dispatcher.go
index 21162f01a..512053a04 100644
--- a/pkg/tcpip/transport/tcp/dispatcher.go
+++ b/pkg/tcpip/transport/tcp/dispatcher.go
@@ -116,7 +116,7 @@ func (p *processor) start(wg *sync.WaitGroup) {
if ep.EndpointState() == StateEstablished && ep.mu.TryLock() {
// If the endpoint is in a connected state then we do direct delivery
// to ensure low latency and avoid scheduler interactions.
- switch err := ep.handleSegments(true /* fastPath */); {
+ switch err := ep.handleSegmentsLocked(true /* fastPath */); {
case err != nil:
// Send any active resets if required.
ep.resetConnectionLocked(err)