FreeBSD Bugzilla – Attachment 149717 Details for
Bug 193762
[cc_cdg] crash after change net.inet.tcp.cc.cdg.smoothing_factor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
cc_cdg bug fix
bug-193762.patch (text/plain), 796 bytes, created by
Midori Kato
on 2014-11-22 17:43:55 UTC
(
hide
)
Description:
cc_cdg bug fix
Filename:
MIME Type:
Creator:
Midori Kato
Created:
2014-11-22 17:43:55 UTC
Size:
796 bytes
patch
obsolete
>diff --git a/sys/netinet/cc/cc_cdg.c b/sys/netinet/cc/cc_cdg.c >index 6e87276..6b0feaf 100644 >--- a/sys/netinet/cc/cc_cdg.c >+++ b/sys/netinet/cc/cc_cdg.c >@@ -578,7 +578,14 @@ cdg_ack_received(struct cc_var *ccv, uint16_t ack_type) > qdiff_min = ((long)(cdg_data->minrtt_in_rtt - > cdg_data->minrtt_in_prevrtt) << D_P_E ); > >- calc_moving_average(cdg_data, qdiff_max, qdiff_min); >+ if (cdg_data->sample_q_size == 0) { >+ cdg_data->min_qtrend = cdg_data->min_qtrend + >+ qdiff_min / cdg_data->sample_q_size; >+ cdg_data->max_qtrend = cdg_data->max_qtrend + >+ qdiff_max / cdg_data->sample_q_size; >+ } else >+ calc_moving_average(cdg_data, qdiff_max, >+ qdiff_min); > > /* Probabilistic backoff with respect to gradient. */ > if (slowstart && qdiff_min > 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193762
: 149717 |
201680