Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
f6152737
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f6152737
编写于
3月 22, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tcp: Make undo_ssthresh arg to tcp_undo_cwr() a bool.
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
67d4120a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
6 deletion
+6
-6
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+6
-6
未找到文件。
net/ipv4/tcp_input.c
浏览文件 @
f6152737
...
@@ -2659,7 +2659,7 @@ static void DBGUNDO(struct sock *sk, const char *msg)
...
@@ -2659,7 +2659,7 @@ static void DBGUNDO(struct sock *sk, const char *msg)
#define DBGUNDO(x...) do { } while (0)
#define DBGUNDO(x...) do { } while (0)
#endif
#endif
static
void
tcp_undo_cwr
(
struct
sock
*
sk
,
const
int
undo_ssthresh
)
static
void
tcp_undo_cwr
(
struct
sock
*
sk
,
const
bool
undo_ssthresh
)
{
{
struct
tcp_sock
*
tp
=
tcp_sk
(
sk
);
struct
tcp_sock
*
tp
=
tcp_sk
(
sk
);
...
@@ -2698,7 +2698,7 @@ static int tcp_try_undo_recovery(struct sock *sk)
...
@@ -2698,7 +2698,7 @@ static int tcp_try_undo_recovery(struct sock *sk)
* or our original transmission succeeded.
* or our original transmission succeeded.
*/
*/
DBGUNDO
(
sk
,
inet_csk
(
sk
)
->
icsk_ca_state
==
TCP_CA_Loss
?
"loss"
:
"retrans"
);
DBGUNDO
(
sk
,
inet_csk
(
sk
)
->
icsk_ca_state
==
TCP_CA_Loss
?
"loss"
:
"retrans"
);
tcp_undo_cwr
(
sk
,
1
);
tcp_undo_cwr
(
sk
,
true
);
if
(
inet_csk
(
sk
)
->
icsk_ca_state
==
TCP_CA_Loss
)
if
(
inet_csk
(
sk
)
->
icsk_ca_state
==
TCP_CA_Loss
)
mib_idx
=
LINUX_MIB_TCPLOSSUNDO
;
mib_idx
=
LINUX_MIB_TCPLOSSUNDO
;
else
else
...
@@ -2725,7 +2725,7 @@ static void tcp_try_undo_dsack(struct sock *sk)
...
@@ -2725,7 +2725,7 @@ static void tcp_try_undo_dsack(struct sock *sk)
if
(
tp
->
undo_marker
&&
!
tp
->
undo_retrans
)
{
if
(
tp
->
undo_marker
&&
!
tp
->
undo_retrans
)
{
DBGUNDO
(
sk
,
"D-SACK"
);
DBGUNDO
(
sk
,
"D-SACK"
);
tcp_undo_cwr
(
sk
,
1
);
tcp_undo_cwr
(
sk
,
true
);
tp
->
undo_marker
=
0
;
tp
->
undo_marker
=
0
;
NET_INC_STATS_BH
(
sock_net
(
sk
),
LINUX_MIB_TCPDSACKUNDO
);
NET_INC_STATS_BH
(
sock_net
(
sk
),
LINUX_MIB_TCPDSACKUNDO
);
}
}
...
@@ -2778,7 +2778,7 @@ static int tcp_try_undo_partial(struct sock *sk, int acked)
...
@@ -2778,7 +2778,7 @@ static int tcp_try_undo_partial(struct sock *sk, int acked)
tcp_update_reordering
(
sk
,
tcp_fackets_out
(
tp
)
+
acked
,
1
);
tcp_update_reordering
(
sk
,
tcp_fackets_out
(
tp
)
+
acked
,
1
);
DBGUNDO
(
sk
,
"Hoe"
);
DBGUNDO
(
sk
,
"Hoe"
);
tcp_undo_cwr
(
sk
,
0
);
tcp_undo_cwr
(
sk
,
false
);
NET_INC_STATS_BH
(
sock_net
(
sk
),
LINUX_MIB_TCPPARTIALUNDO
);
NET_INC_STATS_BH
(
sock_net
(
sk
),
LINUX_MIB_TCPPARTIALUNDO
);
/* So... Do not make Hoe's retransmit yet.
/* So... Do not make Hoe's retransmit yet.
...
@@ -2807,7 +2807,7 @@ static int tcp_try_undo_loss(struct sock *sk)
...
@@ -2807,7 +2807,7 @@ static int tcp_try_undo_loss(struct sock *sk)
DBGUNDO
(
sk
,
"partial loss"
);
DBGUNDO
(
sk
,
"partial loss"
);
tp
->
lost_out
=
0
;
tp
->
lost_out
=
0
;
tcp_undo_cwr
(
sk
,
1
);
tcp_undo_cwr
(
sk
,
true
);
NET_INC_STATS_BH
(
sock_net
(
sk
),
LINUX_MIB_TCPLOSSUNDO
);
NET_INC_STATS_BH
(
sock_net
(
sk
),
LINUX_MIB_TCPLOSSUNDO
);
inet_csk
(
sk
)
->
icsk_retransmits
=
0
;
inet_csk
(
sk
)
->
icsk_retransmits
=
0
;
tp
->
undo_marker
=
0
;
tp
->
undo_marker
=
0
;
...
@@ -3496,7 +3496,7 @@ static void tcp_undo_spur_to_response(struct sock *sk, int flag)
...
@@ -3496,7 +3496,7 @@ static void tcp_undo_spur_to_response(struct sock *sk, int flag)
if
(
flag
&
FLAG_ECE
)
if
(
flag
&
FLAG_ECE
)
tcp_ratehalving_spur_to_response
(
sk
);
tcp_ratehalving_spur_to_response
(
sk
);
else
else
tcp_undo_cwr
(
sk
,
1
);
tcp_undo_cwr
(
sk
,
true
);
}
}
/* F-RTO spurious RTO detection algorithm (RFC4138)
/* F-RTO spurious RTO detection algorithm (RFC4138)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录