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
639a28a6
Commit
639a28a6
authored
Jun 15, 2003
by
Robert Olsson
Committed by
David S. Miller
Jun 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: In rt_intern_hash, reinit all state vars on branch to "restart".
parent
f201a3f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
net/ipv4/route.c
net/ipv4/route.c
+10
-4
No files found.
net/ipv4/route.c
View file @
639a28a6
...
...
@@ -739,13 +739,19 @@ static inline int compare_keys(struct flowi *fl1, struct flowi *fl2)
static
int
rt_intern_hash
(
unsigned
hash
,
struct
rtable
*
rt
,
struct
rtable
**
rp
)
{
struct
rtable
*
rth
,
**
rthp
;
unsigned
long
now
=
jiffies
;
struct
rtable
*
cand
=
NULL
,
**
candp
=
NULL
;
u32
min_score
=
~
(
u32
)
0
;
int
chain_length
=
0
;
unsigned
long
now
;
struct
rtable
*
cand
,
**
candp
;
u32
min_score
;
int
chain_length
;
int
attempts
=
!
in_softirq
();
restart:
chain_length
=
0
;
min_score
=
~
(
u32
)
0
;
cand
=
NULL
;
candp
=
NULL
;
now
=
jiffies
;
rthp
=
&
rt_hash_table
[
hash
].
chain
;
spin_lock_bh
(
&
rt_hash_table
[
hash
].
lock
);
...
...
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