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
8c212931
Commit
8c212931
authored
May 22, 2003
by
David S. Miller
Committed by
David S. Miller
May 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Move TCP_TWKILL_foo macro definitions into tcp_minisocks.c
parent
eaf7c976
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/net/tcp.h
include/net/tcp.h
+0
-4
net/ipv4/tcp_minisocks.c
net/ipv4/tcp_minisocks.c
+4
-0
No files found.
include/net/tcp.h
View file @
8c212931
...
...
@@ -362,10 +362,6 @@ static __inline__ int tcp_sk_listen_hashfn(struct sock *sk)
#define MAX_TCP_KEEPCNT 127
#define MAX_TCP_SYNCNT 127
/* TIME_WAIT reaping mechanism. */
#define TCP_TWKILL_SLOTS 8
/* Please keep this a power of 2. */
#define TCP_TWKILL_PERIOD (TCP_TIMEWAIT_LEN/TCP_TWKILL_SLOTS)
#define TCP_SYNQ_INTERVAL (HZ/5)
/* Period of SYNACK timer */
#define TCP_SYNQ_HSIZE 512
/* Size of SYNACK hash table */
...
...
net/ipv4/tcp_minisocks.c
View file @
8c212931
...
...
@@ -418,6 +418,10 @@ static int tcp_tw_death_row_slot = 0;
static
void
tcp_twkill
(
unsigned
long
);
/* TIME_WAIT reaping mechanism. */
#define TCP_TWKILL_SLOTS 8
/* Please keep this a power of 2. */
#define TCP_TWKILL_PERIOD (TCP_TIMEWAIT_LEN/TCP_TWKILL_SLOTS)
static
struct
tcp_tw_bucket
*
tcp_tw_death_row
[
TCP_TWKILL_SLOTS
];
static
spinlock_t
tw_death_lock
=
SPIN_LOCK_UNLOCKED
;
static
struct
timer_list
tcp_tw_timer
=
TIMER_INITIALIZER
(
tcp_twkill
,
0
,
0
);
...
...
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