[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090611.041645.160293472.davem@davemloft.net>
Date: Thu, 11 Jun 2009 04:16:45 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: timo.teras@....fi
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] neigh: fix state transition INCOMPLETE->FAILED via
Netlink request
From: Timo Teras <timo.teras@....fi>
Date: Thu, 11 Jun 2009 13:32:25 +0300
> The current code errors out the INCOMPLETE neigh entry skb queue only from
> the timer if maximum probes have been attempted and there has been no reply.
> This also causes the transtion to FAILED state.
>
> However, the neigh entry can be also updated via Netlink to inform that the
> address is unavailable. Currently, neigh_update() just stops the timers and
> leaves the pending skb's unreleased. This results that the clean up code in
> the timer callback is never called, preventing also proper garbage collection.
>
> This fixes neigh_update() to process the pending skb queue immediately if
> INCOMPLETE -> FAILED state transtion occurs due to a Netlink request.
>
> Signed-off-by: Timo Teras <timo.teras@....fi>
Looks great, applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists