Skip to content

Commit 5d3ee17

Browse files
authored
Log when the net queue watchdog fires (#2295)
This should help us investigate #2294 should it occur again in the field.
1 parent e08ac24 commit 5d3ee17

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

task/net/src/server.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ enum Trace {
4343
#[count(children)]
4444
vid: VLanId,
4545
},
46+
QueueWatchdogFired {
47+
#[count(children)]
48+
vid: VLanId,
49+
socket_index: usize,
50+
},
4651
}
4752
counted_ringbuf!(Trace, 16, Trace::None);
4853

@@ -430,6 +435,10 @@ impl<E: DeviceExt> VLanState<E> {
430435
s.close();
431436
s.bind(e).unwrap_lite();
432437
changed = true;
438+
ringbuf_entry!(Trace::QueueWatchdogFired {
439+
vid: self.vid,
440+
socket_index,
441+
});
433442

434443
// Reset the watchdog, so it doesn't fire right away
435444
self.queue_watchdog[socket_index] = QueueWatchdog::Nominal;

0 commit comments

Comments
 (0)