Page MenuHomeFreeBSD

tcp: improve logging for PRUs
ClosedPublic

Authored by tuexen on Apr 15 2023, 10:59 PM.
Tags
None
Referenced Files
F151294153: D39591.id120383.diff
Tue, Apr 7, 9:34 AM
Unknown Object (File)
Mon, Apr 6, 4:45 AM
Unknown Object (File)
Sat, Apr 4, 11:16 PM
Unknown Object (File)
Sat, Mar 28, 6:56 PM
Unknown Object (File)
Feb 7 2026, 11:36 PM
Unknown Object (File)
Feb 7 2026, 6:32 PM
Unknown Object (File)
Jan 30 2026, 11:22 PM
Unknown Object (File)
Dec 28 2025, 10:53 AM
Subscribers

Details

Summary

Log all errors for PRUs, except when INP_DROPPED is set. In that case don't log it.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I like the combing of all these functions prologue.

I have one note, though. The "PRU" in the commit message made me notice that tcp_bblog_pru() again started to use this PRU_XXX namespace. If you started using it again, it needs to get out of in_kdtrace.h. But I'd rather suggest to create some own namespace for BB logging and forget this legacy. The long story of PRU_XXX namespace can be found in a comment in in_kdtrace.h.

I like the combing of all these functions prologue.

I have one note, though. The "PRU" in the commit message made me notice that tcp_bblog_pru() again started to use this PRU_XXX namespace. If you started using it again, it needs to get out of in_kdtrace.h. But I'd rather suggest to create some own namespace for BB logging and forget this legacy. The long story of PRU_XXX namespace can be found in a comment in in_kdtrace.h.

We can move things around as long as the numbers are not changed. I use them in the wireshark dissector: packet-bblog.c:179. Let us discuss this on Thursday in the transport call.

This revision is now accepted and ready to land.Apr 19 2023, 11:13 AM
This revision was automatically updated to reflect the committed changes.