summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack
diff options
context:
space:
mode:
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