Page MenuHomeFreeBSD

tcp: improve logging for PRUs
ClosedPublic

Authored by tuexen on Apr 15 2023, 10:59 PM.
Tags
None
Referenced Files
F102661974: D39591.diff
Fri, Nov 15, 12:35 PM
Unknown Object (File)
Oct 16 2024, 3:34 AM
Unknown Object (File)
Oct 9 2024, 1:34 PM
Unknown Object (File)
Sep 16 2024, 6:22 PM
Unknown Object (File)
Sep 15 2024, 9:29 PM
Unknown Object (File)
Sep 15 2024, 7:10 PM
Unknown Object (File)
Sep 7 2024, 11:11 PM
Unknown Object (File)
Sep 7 2024, 10:45 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.