Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.

Commit 9d44f7e

Browse files
author
南琴浪
authored
modify details
1 parent d66c0a5 commit 9d44f7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tcp_nanqinlang.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* Bottleneck Bandwidth and RTT (BBR) congestion control
2-
*
2+
3+
* Modified by @nanqinlang
4+
35
* BBR congestion control computes the sending rate based on the delivery
46
* rate (throughput) estimated from ACKs. In a nutshell:
57
*
@@ -830,15 +832,13 @@ static u32 bbr_ssthresh(struct sock *sk)
830832
return TCP_INFINITE_SSTHRESH; /* BBR does not use ssthresh */
831833
}
832834

833-
static size_t bbr_get_info(struct sock *sk, u32 ext, int *attr,
834-
union tcp_cc_info *info)
835+
static size_t bbr_get_info(struct sock *sk, u32 ext, int *attr, union tcp_cc_info *info)
835836
{
836837
if (ext & (1 << (INET_DIAG_BBRINFO - 1)) ||
837838
ext & (1 << (INET_DIAG_VEGASINFO - 1))) {
838839
struct tcp_sock *tp = tcp_sk(sk);
839840
struct bbr *bbr = inet_csk_ca(sk);
840841
u64 bw = bbr_bw(sk);
841-
842842
bw = bw * tp->mss_cache * USEC_PER_SEC >> BW_SCALE;
843843
memset(&info->bbr, 0, sizeof(info->bbr));
844844
info->bbr.bbr_bw_lo = (u32)bw;
@@ -899,6 +899,6 @@ MODULE_AUTHOR("Van Jacobson <[email protected]>");
899899
MODULE_AUTHOR("Neal Cardwell <[email protected]>");
900900
MODULE_AUTHOR("Yuchung Cheng <[email protected]>");
901901
MODULE_AUTHOR("Soheil Hassas Yeganeh <[email protected]>");
902-
MODULE_AUTHOR("nanqinlang <www.nanqinlang.com>");
902+
MODULE_AUTHOR("nanqinlang <https://www.nanqinlang.com>");
903903
MODULE_LICENSE("Dual BSD/GPL");
904904
MODULE_DESCRIPTION("TCP BBR (Bottleneck Bandwidth and RTT)");

0 commit comments

Comments
 (0)