* [PATCH net-next] ipv6: recursive check rt->dst.from when call rt6_check_expired
@ 2012-09-14 5:54 roy.qing.li
2012-09-19 8:22 ` Gao feng
2012-09-19 19:35 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: roy.qing.li @ 2012-09-14 5:54 UTC (permalink / raw)
To: gaofeng, netdev
From: Li RongQing <roy.qing.li@gmail.com>
If dst cache dst_a copies from dst_b, and dst_b copies from dst_c, check
if dst_a is expired or not, we should not end with dst_a->dst.from, dst_b,
we should check dst_c.
CC: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
---
net/ipv6/route.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 83dafa5..0607ee3 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -369,15 +369,11 @@ static void ip6_dst_ifdown(struct dst_entry *dst, struct net_device *dev,
static bool rt6_check_expired(const struct rt6_info *rt)
{
- struct rt6_info *ort = NULL;
-
if (rt->rt6i_flags & RTF_EXPIRES) {
if (time_after(jiffies, rt->dst.expires))
return true;
} else if (rt->dst.from) {
- ort = (struct rt6_info *) rt->dst.from;
- return (ort->rt6i_flags & RTF_EXPIRES) &&
- time_after(jiffies, ort->dst.expires);
+ return rt6_check_expired((struct rt6_info *) rt->dst.from);
}
return false;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] ipv6: recursive check rt->dst.from when call rt6_check_expired
2012-09-14 5:54 [PATCH net-next] ipv6: recursive check rt->dst.from when call rt6_check_expired roy.qing.li
@ 2012-09-19 8:22 ` Gao feng
2012-09-19 17:41 ` David Miller
2012-09-19 19:35 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Gao feng @ 2012-09-19 8:22 UTC (permalink / raw)
To: roy.qing.li; +Cc: netdev
于 2012年09月14日 13:54, roy.qing.li@gmail.com 写道:
> From: Li RongQing <roy.qing.li@gmail.com>
>
> If dst cache dst_a copies from dst_b, and dst_b copies from dst_c, check
> if dst_a is expired or not, we should not end with dst_a->dst.from, dst_b,
> we should check dst_c.
>
> CC: Gao feng <gaofeng@cn.fujitsu.com>
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
> ---
Looks good to me,thanks rongqing :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] ipv6: recursive check rt->dst.from when call rt6_check_expired
2012-09-19 8:22 ` Gao feng
@ 2012-09-19 17:41 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2012-09-19 17:41 UTC (permalink / raw)
To: gaofeng; +Cc: roy.qing.li, netdev
From: Gao feng <gaofeng@cn.fujitsu.com>
Date: Wed, 19 Sep 2012 16:22:22 +0800
> 于 2012年09月14日 13:54, roy.qing.li@gmail.com 写道:
>> From: Li RongQing <roy.qing.li@gmail.com>
>>
>> If dst cache dst_a copies from dst_b, and dst_b copies from dst_c, check
>> if dst_a is expired or not, we should not end with dst_a->dst.from, dst_b,
>> we should check dst_c.
>>
>> CC: Gao feng <gaofeng@cn.fujitsu.com>
>> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
>> ---
>
> Looks good to me,thanks rongqing :)
An explicit "Acked-by: " is more useful to us than simply saying
it looks good.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] ipv6: recursive check rt->dst.from when call rt6_check_expired
2012-09-14 5:54 [PATCH net-next] ipv6: recursive check rt->dst.from when call rt6_check_expired roy.qing.li
2012-09-19 8:22 ` Gao feng
@ 2012-09-19 19:35 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2012-09-19 19:35 UTC (permalink / raw)
To: roy.qing.li; +Cc: gaofeng, netdev
From: roy.qing.li@gmail.com
Date: Fri, 14 Sep 2012 13:54:57 +0800
> From: Li RongQing <roy.qing.li@gmail.com>
>
> If dst cache dst_a copies from dst_b, and dst_b copies from dst_c, check
> if dst_a is expired or not, we should not end with dst_a->dst.from, dst_b,
> we should check dst_c.
>
> CC: Gao feng <gaofeng@cn.fujitsu.com>
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-09-19 19:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-14 5:54 [PATCH net-next] ipv6: recursive check rt->dst.from when call rt6_check_expired roy.qing.li
2012-09-19 8:22 ` Gao feng
2012-09-19 17:41 ` David Miller
2012-09-19 19:35 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).