]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: clarify tcp_congestion_ops functions comments
authorDaniel Sedlak <daniel.sedlak@cdn77.com>
Mon, 5 Jan 2026 11:55:33 +0000 (12:55 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 Jan 2026 01:35:17 +0000 (17:35 -0800)
commit55ffb0b14a4d310390ea2dd5a92e6d2e5c80d0ef
treeea7ad385fe74bc6448ba5eb0ec3a1bdefbaf9df5
parentf66086798f91f095ce377ca4f3d2765e305a842e
tcp: clarify tcp_congestion_ops functions comments

The optional and required hints in the tcp_congestion_ops are information
for the user of this interface to signalize its importance when
implementing these functions.

However, cong_avoid comment incorrectly tells that it is required,
in reality congestion control must provide one of either cong_avoid or
cong_control.

In addition, min_tso_segs has not had any comment optional/required
hints. So mark it as optional since it is used only in BBR.

Co-developed-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Daniel Sedlak <daniel.sedlak@cdn77.com>
Link: https://patch.msgid.link/20260105115533.1151442-1-daniel.sedlak@cdn77.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h