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
704110b0
Commit
704110b0
authored
Jan 07, 2003
by
Andrew Morton
Committed by
James Morris
Jan 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4 ROUTE]: Uninline rt_hash_code and rt_may_expire.
parent
c6a9941b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/ipv4/route.c
net/ipv4/route.c
+2
-2
No files found.
net/ipv4/route.c
View file @
704110b0
...
@@ -201,7 +201,7 @@ struct rt_cache_stat *rt_cache_stat;
...
@@ -201,7 +201,7 @@ struct rt_cache_stat *rt_cache_stat;
static
int
rt_intern_hash
(
unsigned
hash
,
struct
rtable
*
rth
,
static
int
rt_intern_hash
(
unsigned
hash
,
struct
rtable
*
rth
,
struct
rtable
**
res
);
struct
rtable
**
res
);
static
__inline__
unsigned
rt_hash_code
(
u32
daddr
,
u32
saddr
,
u8
tos
)
static
unsigned
rt_hash_code
(
u32
daddr
,
u32
saddr
,
u8
tos
)
{
{
unsigned
hash
=
((
daddr
&
0xF0F0F0F0
)
>>
4
)
|
unsigned
hash
=
((
daddr
&
0xF0F0F0F0
)
>>
4
)
|
((
daddr
&
0x0F0F0F0F
)
<<
4
);
((
daddr
&
0x0F0F0F0F
)
<<
4
);
...
@@ -430,7 +430,7 @@ static __inline__ int rt_valuable(struct rtable *rth)
...
@@ -430,7 +430,7 @@ static __inline__ int rt_valuable(struct rtable *rth)
rth
->
u
.
dst
.
expires
;
rth
->
u
.
dst
.
expires
;
}
}
static
__inline__
int
rt_may_expire
(
struct
rtable
*
rth
,
int
tmo1
,
int
tmo2
)
static
int
rt_may_expire
(
struct
rtable
*
rth
,
int
tmo1
,
int
tmo2
)
{
{
int
age
;
int
age
;
int
ret
=
0
;
int
ret
=
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