Skip to content

More genericization of struct rtable

David Miller netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ipv4: Rework ipmr_rt_fib_lookup() flow key initialization.net/ipv4/ipmr.c+9 -70 replies
2/8ipv4: Renamt struct rtable's rt_tos to rt_key_tos.include/net/route.h net/ipv4/route.c net/ipv4/xfrm4_policy.c+14 -140 replies
3/8dccp: Use flowi4->saddr in dccp_v4_connect()net/dccp/ipv4.c+1 -10 replies
4/8ipv4: Make caller provide on-stack flow key to ip_route_output_ports().drivers/infiniband/hw/cxgb3/iwch_cm.c drivers/infiniband/hw/cxgb4/cm.c drivers/net/pptp.c +11 more+48 -310 replies
5/8pptp: Use flowi4's daddr/saddr in pptp_xmit().drivers/net/pptp.c+2 -20 replies
6/8libcxgbi: Use flowi4's saddr in cxgbi_check_route().drivers/scsi/cxgbi/libcxgbi.c+6 -50 replies
7/8ipv4: Use flowi4's {saddr,daddr} in igmpv3_newpack() and igmp_send_report()net/ipv4/igmp.c+3 -30 replies
8/8sctp: Use flowi4's {saddr,daddr} in sctp_v4_dst_saddr() and sctp_v4_get_dst()net/sctp/protocol.c+4 -50 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/8] More genericization of struct rtable

This patch set does more work to minimize or completely eliminate various fields of struct rtable, with the goal of making the structure as generic and non-specific as possible.

First we reduce rt->rt_tos such that it is only used as a key for routing cache lookups, and rename it rt->rt_key_tos to reflect this fact.

Next some output route lookup interface tweaks leading to the removal of several rt->rt_{dst,src} accesses, replacing those with flowi4->{daddr,saddr}

More to come.