On Tue, Jun 14, 2022 at 12:44:49PM +0200, Jörn-Thorben Hinz wrote: > Remove the check for required and optional functions in a struct > tcp_congestion_ops from bpf_tcp_ca.c. Rely on > tcp_register_congestion_control() to reject a BPF CC that does not > implement all required functions, as it will do for a non-BPF CC. > > When a CC implements tcp_congestion_ops.cong_control(), the alternate > cong_avoid() is not in use in the TCP stack. Previously, a BPF CC was > still forced to implement cong_avoid() as a no-op since it was > non-optional in bpf_tcp_ca.c. > > Signed-off-by: Jörn-Thorben Hinz <jthinz@xxxxxxxxxxxxxxxxxxxx> Reviewed-by: Martin KaFai Lau <kafai@xxxxxx>