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
4502a4e1
Commit
4502a4e1
authored
May 06, 2003
by
Randy Dunlap
Committed by
David S. Miller
May 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Use time_after() etc. for comparing jiffies.
parent
5433a827
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
net/ipv6/ip6_fib.c
net/ipv6/ip6_fib.c
+2
-2
net/ipv6/route.c
net/ipv6/route.c
+1
-1
No files found.
net/ipv6/ip6_fib.c
View file @
4502a4e1
...
...
@@ -1179,14 +1179,14 @@ static int fib6_age(struct rt6_info *rt, void *arg)
*/
if
(
rt
->
rt6i_flags
&
RTF_EXPIRES
&&
rt
->
rt6i_expires
)
{
if
(
(
long
)(
now
-
rt
->
rt6i_expires
)
>
0
)
{
if
(
time_after
(
now
,
rt
->
rt6i_expires
)
)
{
RT6_TRACE
(
"expiring %p
\n
"
,
rt
);
return
-
1
;
}
gc_args
.
more
++
;
}
else
if
(
rt
->
rt6i_flags
&
RTF_CACHE
)
{
if
(
atomic_read
(
&
rt
->
u
.
dst
.
__refcnt
)
==
0
&&
(
long
)(
now
-
rt
->
u
.
dst
.
lastuse
)
>=
gc_args
.
timeout
)
{
time_after_eq
(
now
,
rt
->
u
.
dst
.
lastuse
+
gc_args
.
timeout
)
)
{
RT6_TRACE
(
"aging clone %p
\n
"
,
rt
);
return
-
1
;
}
...
...
net/ipv6/route.c
View file @
4502a4e1
...
...
@@ -565,7 +565,7 @@ static int ip6_dst_gc()
static
unsigned
long
last_gc
;
unsigned
long
now
=
jiffies
;
if
(
(
long
)(
now
-
last_gc
)
<
ip6_rt_gc_min_interval
&&
if
(
time_after
(
last_gc
+
ip6_rt_gc_min_interval
,
now
)
&&
atomic_read
(
&
ip6_dst_ops
.
entries
)
<=
ip6_rt_max_size
)
goto
out
;
...
...
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