summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-08-12 07:56:24 +0000
committergVisor bot <gvisor-bot@google.com>2021-08-12 07:56:24 +0000
commit7e3845c246594cf53f846a6b3adf0b601368dd52 (patch)
treedb4738ac0ed7ea7594d6d3a7676a0898ec3e2b02 /pkg/tcpip/stack
parent88c06f88e8431d0f399d59c34d9fe6a9e670c60e (diff)
parent96459f55984f655641aa17f7eaac829a170b506a (diff)
Merge release-20210726.0-56-g96459f559 (automated)
Diffstat (limited to 'pkg/tcpip/stack')
-rw-r--r--pkg/tcpip/stack/stack_state_autogen.go3
-rw-r--r--pkg/tcpip/stack/tcp.go6
2 files changed, 9 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/stack_state_autogen.go b/pkg/tcpip/stack/stack_state_autogen.go
index 47c7e386e..037c7b745 100644
--- a/pkg/tcpip/stack/stack_state_autogen.go
+++ b/pkg/tcpip/stack/stack_state_autogen.go
@@ -1047,6 +1047,7 @@ func (t *TCPSndBufState) StateFields() []string {
"SndClosed",
"PacketTooBigCount",
"SndMTU",
+ "AutoTuneSndBufDisabled",
}
}
@@ -1060,6 +1061,7 @@ func (t *TCPSndBufState) StateSave(stateSinkObject state.Sink) {
stateSinkObject.Save(2, &t.SndClosed)
stateSinkObject.Save(3, &t.PacketTooBigCount)
stateSinkObject.Save(4, &t.SndMTU)
+ stateSinkObject.Save(5, &t.AutoTuneSndBufDisabled)
}
func (t *TCPSndBufState) afterLoad() {}
@@ -1071,6 +1073,7 @@ func (t *TCPSndBufState) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(2, &t.SndClosed)
stateSourceObject.Load(3, &t.PacketTooBigCount)
stateSourceObject.Load(4, &t.SndMTU)
+ stateSourceObject.Load(5, &t.AutoTuneSndBufDisabled)
}
func (t *TCPEndpointStateInner) StateTypeName() string {
diff --git a/pkg/tcpip/stack/tcp.go b/pkg/tcpip/stack/tcp.go
index 90a8ba6cf..93ea83cdc 100644
--- a/pkg/tcpip/stack/tcp.go
+++ b/pkg/tcpip/stack/tcp.go
@@ -386,6 +386,12 @@ type TCPSndBufState struct {
// SndMTU is the smallest MTU seen in the control packets received.
SndMTU int
+
+ // AutoTuneSndBufDisabled indicates that the auto tuning of send buffer
+ // is disabled.
+ //
+ // Must be accessed using atomic operations.
+ AutoTuneSndBufDisabled uint32
}
// TCPEndpointStateInner contains the members of TCPEndpointState used directly