File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ import (
25
25
var _ stack.LinkEndpoint = (* Endpoint )(nil )
26
26
var _ stack.GSOEndpoint = (* Endpoint )(nil )
27
27
28
+ // +stateify savable
28
29
type veth struct {
29
- mu sync.RWMutex
30
+ mu sync.RWMutex `state:"nosave"`
30
31
closed bool
31
- backlogQueue chan vethPacket
32
+ backlogQueue chan vethPacket `state:"nosave"`
32
33
mtu uint32
33
34
endpoints [2 ]Endpoint
34
35
}
@@ -80,7 +81,7 @@ type Endpoint struct {
80
81
// +checklocks:mu
81
82
linkAddr tcpip.LinkAddress
82
83
// +checklocks:mu
83
- onCloseAction func ()
84
+ onCloseAction func () `state:"nosave"`
84
85
}
85
86
86
87
// NewPair creates a new veth pair.
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ func makeNICStats(global tcpip.NICStats) sharedStats {
103
103
104
104
// +stateify savable
105
105
type packetEndpointList struct {
106
- mu packetEndpointListRWMutex
106
+ mu packetEndpointListRWMutex `state:"nosave"`
107
107
108
108
// eps is protected by mu, but the contained PacketEndpoint values are not.
109
109
//
You can’t perform that action at this time.
0 commit comments