Pass keys down to ip_queue_xmit()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | dccp: Use cork flow in dccp_v4_connect()net/ | +6 | 0 replies | |
| 2/15 | tcp: Use cork flow in tcp_v4_connect()net/ | +7 | 0 replies | |
| 3/15 | l2tp: Fix locking in l2tp_ip.cnet/ | +15 | 0 replies | |
| 4/15 | l2tp: Fix locking in l2tp_core.cnet/ | +8 | 0 replies | |
| 5/15 | l2tp: Use cork flow in l2tp_ip_connect() and l2tp_ip_sendmsg()net/ | +9 | 0 replies | |
| 6/15 | ipv4: Lock socket and use cork flow in ip4_datagram_connect().net/ | +15 | 0 replies | |
| 7/15 | ipv4: Use cork flow in inet_sk_{reselect_saddr,rebuild_header}()net/ | +7 | 0 replies | |
| 8/15 | ipv4: Use cork flow in ip_queue_xmit()net/ | +3 | 0 replies | |
| 9/15 | sctp: Store a flowi in transports to provide persistent keying.include/ net/ | +4 | 0 replies | |
| 10/15 | ipv4: Create inet_csk_route_child_sock().include/ net/ | +36 | 0 replies | |
| 11/15 | ipv4: Use inet_csk_route_child_sock() in DCCP and TCP.net/ net/ | +20 | 0 replies | |
| 12/15 | inet: Pass flowi to ->queue_xmit().include/ include/ include/ +7 more | +17 | 0 replies | |
| 13/15 | ipv4: Don't use rt->rt_{src,dst} in ip_queue_xmit().net/ | +4 | 0 replies | |
| 14/15 | sctp: Don't use rt->rt_{src,dst} in sctp_v4_xmit()net/ | +2 | 0 replies | |
| 15/15 | tcp: Use cork flow info instead of rt->rt_dst in tcp_v4_get_peer()net/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/15] Pass keys down to ip_queue_xmit()
The final goal of this set of changes is to normalize all uses of ip_queue_xmit() and how sockets are connected up so that ip_queue_xmit() can elide it's usage of rt->rt_{src,dst}
Along the way I found some locking problems in L2TP fixed here.
Basically we reuse inet_sk->cork.fl to store keying information and pass that (or something more appropriate) to ip_queue_xmit()
This opens up the door for SCTP to express exactly what is does, by passing in a flow which is now added to the individual transport instances.
Taking this one step further, we could add a "struct dst **dst" argument to ->queue_xmit() and friends, then SCTP could pass in "&transport->dst" and it would no longer need to do that special "pre-hookup the DST to skb" uglyness.
L2TP could be modified similarly.
Then the pre-routed SKB code can be removed completely.