Page MenuHomeFreeBSD

Fix building of TCP CC modules depending on TCP_HHOOK
ClosedPublic

Authored by tuexen on Jul 12 2023, 6:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 1:39 AM
Unknown Object (File)
Sat, Apr 27, 12:43 AM
Unknown Object (File)
Sat, Apr 27, 12:43 AM
Unknown Object (File)
Sat, Apr 27, 12:38 AM
Unknown Object (File)
Sat, Apr 27, 12:38 AM
Unknown Object (File)
Fri, Apr 26, 11:55 PM
Unknown Object (File)
Fri, Apr 26, 1:09 AM
Unknown Object (File)
Tue, Apr 23, 8:54 AM
Subscribers

Details

Summary

In D37127 the option TCP_HHOOK was moved from opt_inet.h to opt_global.h. The corresponding change in sys/modules/cc/Makefile and sys/modules/khelp/Makefile was missed.

Test Plan

Check that cc_vegas module is build, when the TCP_HHOOK kernel configuration is enabled, which is the default.

Diff Detail

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

Event Timeline

tuexen edited the summary of this revision. (Show Details)

Fix also sys/modules/khelp/Makefile.

This revision is now accepted and ready to land.Jul 12 2023, 7:01 PM
This revision now requires review to proceed.Jul 12 2023, 7:04 PM
This revision is now accepted and ready to land.Jul 13 2023, 3:19 PM
This revision was automatically updated to reflect the committed changes.

Yea, this likely isn't the right fix here at all...

sys/modules/cc/Makefile
13

I don't understand this bit at all...

In D41010#933899, @imp wrote:

Yea, this likely isn't the right fix here at all...

I'm willing to revert it, of course. But my understanding is that the 'old' condition checks for TCP_HHOOK in opt_inet.h. This was correct before e68b3792440cac248347afe08ba5881a00ba6523, in which`TCP_HHOOK` was moved from opt_inet.h to opt_global.h. So shouldn't this condition reflect this change?
The result was, that cc_cdg, cc_chd, cc_hd, and cc_vegas were not build anymore on systems with TCP_HHOOK in the kernel config. I considered that a bug and this change addresses it.
What do you consider to be the right fix?

sys/modules/cc/Makefile
13

I don't understand this bit at all...

Old version: Build the CC module if you want to build all modules or TCP_HHOOK is defined in opt_inet.h.

New version: Build the CC module if you want to build all modules or TCP_HHOOK is defined in opt_global.h.

That is my understanding, however I did not write the original code. I assumed that it is acceptable and concluded that it should change, since TCP_HHOOK was moved from opt_inet.h to opt_global.h. If that is wrong, please let me know.