Commit cb8e2e43 authored by Baokun Li's avatar Baokun Li Committed by David S. Miller

dccp: tfrc: fix doc warnings in tfrc_equation.c

Add description for `tfrc_invert_loss_event_rate` to fix the W=1 warnings:

 net/dccp/ccids/lib/tfrc_equation.c:695: warning: Function parameter or
  member 'loss_event_rate' not described in 'tfrc_invert_loss_event_rate'
Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
Reviewed-by: default avatarRichard Sailer <richard_siegfried@systemli.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 73e42909
...@@ -688,6 +688,7 @@ u32 tfrc_calc_x_reverse_lookup(u32 fvalue) ...@@ -688,6 +688,7 @@ u32 tfrc_calc_x_reverse_lookup(u32 fvalue)
/** /**
* tfrc_invert_loss_event_rate - Compute p so that 10^6 corresponds to 100% * tfrc_invert_loss_event_rate - Compute p so that 10^6 corresponds to 100%
* @loss_event_rate: loss event rate to invert
* When @loss_event_rate is large, there is a chance that p is truncated to 0. * When @loss_event_rate is large, there is a chance that p is truncated to 0.
* To avoid re-entering slow-start in that case, we set p = TFRC_SMALLEST_P > 0. * To avoid re-entering slow-start in that case, we set p = TFRC_SMALLEST_P > 0.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment