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)
Sun, Apr 7, 11:15 PM
Unknown Object (File)
Dec 20 2023, 7:08 AM
Unknown Object (File)
Dec 10 2023, 5:54 PM
Unknown Object (File)
Nov 28 2023, 10:18 PM
Unknown Object (File)
Nov 27 2023, 8:46 AM
Unknown Object (File)
Nov 22 2023, 6:08 AM
Unknown Object (File)
Nov 22 2023, 5:14 AM
Unknown Object (File)
Nov 22 2023, 5:07 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.