File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,14 +121,9 @@ impl Relay {
121121 #[ allow( dead_code) ]
122122 match state {
123123 RelayState :: Idle => {
124- // FIXME: For now we emulate the old C forwarding code, which
125- // immediately forwarded one packet at a time as soon as one is
126- // available. We should delete the forward_now call and swap to
127- // forward_later intead, which lets packets accumulate and
128- // unwinds the stack to forward them, once we better understand
129- // its effect on performance.
130- self . forward_now ( host) ;
131- // self.forward_later(SimulationTime::ZERO, host);
124+ // Allow packets to accumulate and unwind the stack to forward
125+ // them.
126+ self . forward_later ( SimulationTime :: ZERO , host) ;
132127 }
133128 RelayState :: Pending => {
134129 log:: trace!( "Relay forward task already scheduled; skipping forward request." ) ;
You can’t perform that action at this time.
0 commit comments