[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130118.143858.897140770429940003.davem@davemloft.net>
Date: Fri, 18 Jan 2013 14:38:58 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: steffen.klassert@...unet.com
Cc: Yurij.Plotnikov@...etlabs.ru, bhutchings@...arflare.com,
netdev@...r.kernel.org, Alexandra.Kossovsky@...etlabs.ru
Subject: Re: [RFC PATCH 1/3] ipv4: Invalidate the socket cached route on
pmtu events if possible
From: Steffen Klassert <steffen.klassert@...unet.com>
Date: Fri, 18 Jan 2013 09:14:20 +0100
> The route lookup in ipv4_sk_update_pmtu() might return a route
> different from the route we cached at the socket. This is because
> standart routes are per cpu, so each cpu has it's own struct rtable.
> This means that we do not invalidate the socket cached route if the
> NET_RX_SOFTIRQ is not served by the same cpu that the sending socket
> uses. As a result, the cached route reused until we disconnect.
>
> With this patch we invalidate the socket cached route if possible.
> If the socket is owened by the user, we can't update the cached
> route directly. A followup patch will implement socket release
> callback functions for datagram sockets to handle this case.
>
> Signed-off-by: Steffen Klassert <steffen.klassert@...unet.com>
This looks fine.
--
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