Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d5a61fa4
Commit
d5a61fa4
authored
Jul 09, 2003
by
David S. Miller
Committed by
Stephen Hemminger
Jul 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Eliminate spurious CWND restart on every new connection.
parent
45eb99ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+12
-0
No files found.
net/ipv4/tcp_input.c
View file @
d5a61fa4
...
@@ -3698,6 +3698,12 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,
...
@@ -3698,6 +3698,12 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,
tp
->
af_specific
->
rebuild_header
(
sk
);
tp
->
af_specific
->
rebuild_header
(
sk
);
tcp_init_metrics
(
sk
);
tcp_init_metrics
(
sk
);
/* Prevent spurious tcp_cwnd_restart() on first data
* packet.
*/
tp
->
lsndtime
=
tcp_time_stamp
;
tcp_init_buffer_space
(
sk
);
tcp_init_buffer_space
(
sk
);
if
(
sock_flag
(
sk
,
SOCK_KEEPOPEN
))
if
(
sock_flag
(
sk
,
SOCK_KEEPOPEN
))
...
@@ -3969,6 +3975,12 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
...
@@ -3969,6 +3975,12 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
tp
->
af_specific
->
rebuild_header
(
sk
);
tp
->
af_specific
->
rebuild_header
(
sk
);
tcp_init_metrics
(
sk
);
tcp_init_metrics
(
sk
);
/* Prevent spurious tcp_cwnd_restart() on
* first data packet.
*/
tp
->
lsndtime
=
tcp_time_stamp
;
tcp_initialize_rcv_mss
(
sk
);
tcp_initialize_rcv_mss
(
sk
);
tcp_init_buffer_space
(
sk
);
tcp_init_buffer_space
(
sk
);
tcp_fast_path_on
(
tp
);
tcp_fast_path_on
(
tp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment