Re: [RFC] net/core: Delay neighbor only if it has been used after confirmed

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: YOSHIFUJI Hideaki
Date: Wednesday, September 2, 2009 - 5:22 am

Hello.

Jens Rosenboom wrote:

Well, as you can see in neigh_periodic_timer():
|                if (time_before(n->used, n->confirmed))
|                        n->used = n->confirmed;
time_after_eq(n->used, n->confirmed) should be taken valid;
confirmed <= used <= now <= jiffies


okay, but I would rather have this in another patch.


I think your change should be
| time_after(neigh->used, neigh->confirmed)
or
| time_before(neigh->confirmed, neigh->used)

("_eq" is removed because there is a little chance
that the neighbor had been confirmed just before it was
used.  It is not interesting for us at this moment.)

No?

And, this "if" for REACHABLE->DELAY may be completely needless.
Timer in REACHABLE is only for state transition for toward REACHABLE
or STALE.

--yoshfuji
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] net/core: Delay neighbor only if it has been use ..., YOSHIFUJI Hideaki, (Wed Sep 2, 5:22 am)