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
4d9d9fa9
Commit
4d9d9fa9
authored
May 26, 2004
by
David S. Miller
Committed by
Dmitry Torokhov
May 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Add tcp_default_win_scale sysctl.
parent
d8777cc1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
0 deletions
+20
-0
Documentation/networking/ip-sysctl.txt
Documentation/networking/ip-sysctl.txt
+5
-0
include/linux/sysctl.h
include/linux/sysctl.h
+1
-0
include/net/tcp.h
include/net/tcp.h
+4
-0
net/ipv4/sysctl_net_ipv4.c
net/ipv4/sysctl_net_ipv4.c
+8
-0
net/ipv4/tcp.c
net/ipv4/tcp.c
+2
-0
No files found.
Documentation/networking/ip-sysctl.txt
View file @
4d9d9fa9
...
...
@@ -340,6 +340,11 @@ tcp_bic_fast_convergence - BOOLEAN
more rapidly.
Default: 1
tcp_default_win_scale - INTEGER
Sets the minimum window scale TCP will negotiate for on all
conections.
Default: 7
ip_local_port_range - 2 INTEGERS
Defines the local port range that is used by TCP and UDP to
choose the local port. The first number is the first, the
...
...
include/linux/sysctl.h
View file @
4d9d9fa9
...
...
@@ -336,6 +336,7 @@ enum
NET_TCP_BIC
=
102
,
NET_TCP_BIC_FAST_CONVERGENCE
=
103
,
NET_TCP_BIC_LOW_WINDOW
=
104
,
NET_TCP_DEFAULT_WIN_SCALE
=
105
,
};
enum
{
...
...
include/net/tcp.h
View file @
4d9d9fa9
...
...
@@ -610,6 +610,7 @@ extern int sysctl_tcp_nometrics_save;
extern
int
sysctl_tcp_bic
;
extern
int
sysctl_tcp_bic_fast_convergence
;
extern
int
sysctl_tcp_bic_low_window
;
extern
int
sysctl_tcp_default_win_scale
;
extern
atomic_t
tcp_memory_allocated
;
extern
atomic_t
tcp_sockets_allocated
;
...
...
@@ -1751,6 +1752,9 @@ static inline void tcp_select_initial_window(int __space, __u32 mss,
if
(
*
rcv_wscale
&&
sysctl_tcp_app_win
&&
space
>=
mss
&&
space
-
max
((
space
>>
sysctl_tcp_app_win
),
mss
>>*
rcv_wscale
)
<
65536
/
2
)
(
*
rcv_wscale
)
--
;
*
rcv_wscale
=
max
((
__u8
)
sysctl_tcp_default_win_scale
,
*
rcv_wscale
);
}
/* Set initial window to value enough for senders,
...
...
net/ipv4/sysctl_net_ipv4.c
View file @
4d9d9fa9
...
...
@@ -665,6 +665,14 @@ ctl_table ipv4_table[] = {
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_TCP_DEFAULT_WIN_SCALE
,
.
procname
=
"tcp_default_win_scale"
,
.
data
=
&
sysctl_tcp_default_win_scale
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
0
}
};
...
...
net/ipv4/tcp.c
View file @
4d9d9fa9
...
...
@@ -276,6 +276,8 @@ kmem_cache_t *tcp_timewait_cachep;
atomic_t
tcp_orphan_count
=
ATOMIC_INIT
(
0
);
int
sysctl_tcp_default_win_scale
=
7
;
int
sysctl_tcp_mem
[
3
];
int
sysctl_tcp_wmem
[
3
]
=
{
4
*
1024
,
16
*
1024
,
128
*
1024
};
int
sysctl_tcp_rmem
[
3
]
=
{
4
*
1024
,
87380
,
87380
*
2
};
...
...
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