ipv4: Don't report stale pmtu values to userspace
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 8 Oct 2012 00:56:54 +0000 (00:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2012 18:46:35 +0000 (14:46 -0400)
commitee9a8f7ab2edf801b8b514c310455c94acc232f6
tree354084bb26d1ce12bb552ced3cdd653fc63989db
parent7f92d334ba19a0d8e96f8f8f092219553367d921
ipv4: Don't report stale pmtu values to userspace

We report cached pmtu values even if they are already expired.
Change this to not report these values after they are expired
and fix a race in the expire time calculation, as suggested by
Eric Dumazet.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c