summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-23 19:03:20 +0000
committergVisor bot <gvisor-bot@google.com>2021-03-23 19:03:20 +0000
commite48ad2ada0357cb8ee9185074aaff7ab44d84631 (patch)
treef8848b871cd5e3a0d07853083e024a231438085c /pkg/tcpip/link
parent0fea1c57d9bc63416cc366720b2f53139468352f (diff)
parentacb4c62885629d6d3ee977b93c27282abed0b33f (diff)
Merge release-20210315.0-15-gacb4c6288 (automated)
Diffstat (limited to 'pkg/tcpip/link')
-rw-r--r--pkg/tcpip/link/channel/channel_state_autogen.go2
-rw-r--r--pkg/tcpip/link/tun/tun_state_autogen.go4
2 files changed, 6 insertions, 0 deletions
diff --git a/pkg/tcpip/link/channel/channel_state_autogen.go b/pkg/tcpip/link/channel/channel_state_autogen.go
index 38c12a3bf..7730b59b8 100644
--- a/pkg/tcpip/link/channel/channel_state_autogen.go
+++ b/pkg/tcpip/link/channel/channel_state_autogen.go
@@ -18,6 +18,7 @@ func (n *NotificationHandle) StateFields() []string {
func (n *NotificationHandle) beforeSave() {}
+// +checklocksignore
func (n *NotificationHandle) StateSave(stateSinkObject state.Sink) {
n.beforeSave()
stateSinkObject.Save(0, &n.n)
@@ -25,6 +26,7 @@ func (n *NotificationHandle) StateSave(stateSinkObject state.Sink) {
func (n *NotificationHandle) afterLoad() {}
+// +checklocksignore
func (n *NotificationHandle) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &n.n)
}
diff --git a/pkg/tcpip/link/tun/tun_state_autogen.go b/pkg/tcpip/link/tun/tun_state_autogen.go
index 3515d86fd..c5773cc11 100644
--- a/pkg/tcpip/link/tun/tun_state_autogen.go
+++ b/pkg/tcpip/link/tun/tun_state_autogen.go
@@ -19,6 +19,7 @@ func (d *Device) StateFields() []string {
}
}
+// +checklocksignore
func (d *Device) StateSave(stateSinkObject state.Sink) {
d.beforeSave()
stateSinkObject.Save(0, &d.Queue)
@@ -29,6 +30,7 @@ func (d *Device) StateSave(stateSinkObject state.Sink) {
func (d *Device) afterLoad() {}
+// +checklocksignore
func (d *Device) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &d.Queue)
stateSourceObject.Load(1, &d.endpoint)
@@ -48,11 +50,13 @@ func (r *tunEndpointRefs) StateFields() []string {
func (r *tunEndpointRefs) beforeSave() {}
+// +checklocksignore
func (r *tunEndpointRefs) StateSave(stateSinkObject state.Sink) {
r.beforeSave()
stateSinkObject.Save(0, &r.refCount)
}
+// +checklocksignore
func (r *tunEndpointRefs) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &r.refCount)
stateSourceObject.AfterLoad(r.afterLoad)