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
Kirill Smelkov
linux
Commits
2e4a83ab
Commit
2e4a83ab
authored
Mar 14, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Kill westwood bw_sample, set but never used.
parent
43a37a79
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
include/linux/tcp.h
include/linux/tcp.h
+0
-1
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+2
-4
No files found.
include/linux/tcp.h
View file @
2e4a83ab
...
...
@@ -377,7 +377,6 @@ struct tcp_opt {
/* TCP Westwood structure */
struct
{
__u32
bw_sample
;
/* bandwidth sample */
__u32
bw_ns_est
;
/* first bandwidth estimation..not too smoothed 8) */
__u32
bw_est
;
/* bandwidth estimate */
__u32
rtt_win_sx
;
/* here starts a new evaluation... */
...
...
net/ipv4/tcp_input.c
View file @
2e4a83ab
...
...
@@ -2065,7 +2065,6 @@ static void init_westwood(struct sock *sk)
{
struct
tcp_opt
*
tp
=
tcp_sk
(
sk
);
tp
->
westwood
.
bw_sample
=
0
;
tp
->
westwood
.
bw_ns_est
=
0
;
tp
->
westwood
.
bw_est
=
0
;
tp
->
westwood
.
accounted
=
0
;
...
...
@@ -2088,14 +2087,13 @@ static inline __u32 westwood_do_filter(__u32 a, __u32 b)
static
void
westwood_filter
(
struct
sock
*
sk
,
__u32
delta
)
{
struct
tcp_opt
*
tp
=
tcp_sk
(
sk
);
__u32
sample
=
tp
->
westwood
.
bk
/
delta
;
tp
->
westwood
.
bw_ns_est
=
westwood_do_filter
(
tp
->
westwood
.
bw_ns_est
,
sample
);
westwood_do_filter
(
tp
->
westwood
.
bw_ns_est
,
tp
->
westwood
.
bk
/
delta
);
tp
->
westwood
.
bw_est
=
westwood_do_filter
(
tp
->
westwood
.
bw_est
,
tp
->
westwood
.
bw_ns_est
);
tp
->
westwood
.
bw_sample
=
sample
;
}
/* @westwood_update_rttmin
...
...
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