Skip to content

More rt->rt_{src,dst} removals.

David Miller netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ipv4: Use flowi4->{daddr,saddr} in ipip_tunnel_xmit().net/ipv4/ipip.c+2 -20 replies
2/5ipv4: In ip_build_and_send_pkt() use 'saddr' and 'daddr' args passed in.net/ipv4/ip_output.c+2 -20 replies
3/5ipv4: Pass explicit saddr/daddr args to ipmr_get_route().include/linux/mroute.h net/ipv4/ipmr.c net/ipv4/route.c+12 -90 replies
4/5ipv4: Kill rt->rt_{src, dst} usage in IP GRE tunnels.include/net/route.h net/ipv4/ip_gre.c+30 -260 replies
5/5ipv6: Use flowi4->{daddr,saddr} in ipip6_tunnel_xmit().net/ipv6/sit.c+2 -20 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/5] More rt->rt_{src,dst} removals.

After this set the number of uses of rt->rt_{src,dst} are very small.

One case to hit still will need a slight rearrangement of how we do SRR handling, since SRR handling on input pops the nexthop and thus creates situations where iph->daddr != rt->rt_dst and thus eliminates the posibility of converting the rt->rt_dst access in ip_forward().

Another class of remaining cases occur in situations where we can fetch the saddr/daddr from the inet socket.

Soon, all that will be left are the assignments and netlink dump code cases in net/ipv4/route.c