On Wed, Apr 24, 2024 at 10:38 PM Miao Xu <miaxu@xxxxxxxx> wrote: > > This patch adds two new arguments for cong_control of struct > tcp_congestion_ops: > - ack > - flag > These two arguments are inherited from the caller tcp_cong_control in > tcp_intput.c. One use case of them is to update cwnd and pacing rate > inside cong_control based on the info they provide. For example, the > flag can be used to decide if it is the right time to raise or reduce a > sender's cwnd. > > Another change in this patch is to allow the write of tp->snd_cwnd_stamp > for a bpf tcp ca program. An use case of writing this field is to keep > track of the time whenever tp->snd_cwnd is raised or reduced inside the > cong_control callback. > > Signed-off-by: Miao Xu <miaxu@xxxxxxxx> Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>