Skip to content

ipv4: pmtu fixes

Steffen Klassert netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ipv4: Always invalidate or update the route on pmtu eventsnet/ipv4/route.c+11 -110 replies
2/3ipv4: Don't create nh exeption when the device mtu is smaller than the reported pmtunet/ipv4/route.c+3 -00 replies
3/3ipv4: Don't report stale pmtu values to userspacenet/ipv4/route.c+9 -83 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] ipv4: pmtu fixes

This patchset fixes some issues that came with the routing cache removal.

1) IPsec and others (udp, ipvs) may cache output routes, these routes need to be invalidated on pmtu events in the same way e.g. tcp socket cached routes are invalidated. With this we always invalidate or update (if we already use a nh exeption route) the old route on pmtu events.

This has the drawback that we may needlessly invalidate an uncached route, but this fixes all the users that cache routes and pmtu events are rare, so this should not be a real issue.

2) We create nh exeptions if a user (e.g. tracepath) tries to do pmtu dicsovery with packets bigger than the output device mtu. The device mtu is not learned and does not expire, so don't create an exeption route.

3) We report cached pmtu values to userspace even if they are expired. Fix this by checking for expiration before we report.