mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add restore context to netstack
PiperOrigin-RevId: 613295366
This commit is contained in:
committed by
gVisor bot
parent
23ec05d19c
commit
1676e8a877
@@ -21,8 +21,8 @@ import (
|
||||
)
|
||||
|
||||
// afterLoad is invoked by stateify.
|
||||
func (s *Stack) afterLoad(context.Context) {
|
||||
s.Stack = stack.StackFromEnv // FIXME(b/36201077)
|
||||
func (s *Stack) afterLoad(ctx context.Context) {
|
||||
s.Stack = stack.RestoreStackFromContext(ctx)
|
||||
if s.Stack == nil {
|
||||
panic("can't restore without netstack/tcpip/stack.Stack")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user