summaryrefslogtreecommitdiff
path: root/net/dccp
diff options
context:
space:
mode:
authorBaokun Li <libaokun1@huawei.com>2021-06-10 16:26:03 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-11 00:08:49 +0300
commitcb8e2e4300fc17e1028cce554ecf72a9e6161742 (patch)
tree99170c598a0eb6b53858db311da4e96392000c5f /net/dccp
parent73e42909ef2d1fa554b39bf6ae3eb1546dfc97a5 (diff)
downloadlinux-cb8e2e4300fc17e1028cce554ecf72a9e6161742.tar.xz
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: Baokun Li <libaokun1@huawei.com> Reviewed-by: Richard Sailer <richard_siegfried@systemli.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/ccids/lib/tfrc_equation.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/ccids/lib/tfrc_equation.c b/net/dccp/ccids/lib/tfrc_equation.c
index e2a337fa9ff7..92a8c6bea316 100644
--- a/net/dccp/ccids/lib/tfrc_equation.c
+++ b/net/dccp/ccids/lib/tfrc_equation.c
@@ -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%
+ * @loss_event_rate: loss event rate to invert
* 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.
*/