Page MenuHomeFreeBSD

tcp: improve logging for PRUs
ClosedPublic

Authored by tuexen on Apr 15 2023, 10:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 2, 3:23 PM
Unknown Object (File)
Tue, Apr 28, 11:58 PM
Unknown Object (File)
Tue, Apr 28, 4:06 PM
Unknown Object (File)
Mon, Apr 27, 7:43 AM
Unknown Object (File)
Mon, Apr 27, 6:40 AM
Unknown Object (File)
Mon, Apr 27, 4:41 AM
Unknown Object (File)
Thu, Apr 23, 10:17 AM
Unknown Object (File)
Tue, Apr 21, 3:12 PM
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.