mbox series

[net-next,0/5] ipv4: Consolidate route lookups from IPv4 sockets.

Message ID cover.1734357769.git.gnault@redhat.com (mailing list archive)
Headers show
Series ipv4: Consolidate route lookups from IPv4 sockets. | expand

Message

Guillaume Nault Dec. 16, 2024, 5:21 p.m. UTC
Create inet_sk_init_flowi4() so that the different IPv4 code paths that
need to do a route lookup based on an IPv4 socket don't need to
reimplement that logic.

Guillaume Nault (5):
  ipv4: Define inet_sk_init_flowi4() and use it in
    inet_sk_rebuild_header().
  ipv4: Use inet_sk_init_flowi4() in ip4_datagram_release_cb().
  ipv4: Use inet_sk_init_flowi4() in inet_csk_rebuild_route().
  ipv4: Use inet_sk_init_flowi4() in __ip_queue_xmit().
  l2tp: Use inet_sk_init_flowi4() in l2tp_ip_sendmsg().

 include/net/route.h             | 28 ++++++++++++++++++++++++++++
 net/ipv4/af_inet.c              | 14 ++------------
 net/ipv4/datagram.c             | 11 ++---------
 net/ipv4/inet_connection_sock.c | 11 ++---------
 net/ipv4/ip_output.c            | 16 ++++------------
 net/l2tp/l2tp_ip.c              | 19 ++++++-------------
 6 files changed, 44 insertions(+), 55 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Dec. 20, 2024, 10:10 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 16 Dec 2024 18:21:40 +0100 you wrote:
> Create inet_sk_init_flowi4() so that the different IPv4 code paths that
> need to do a route lookup based on an IPv4 socket don't need to
> reimplement that logic.
> 
> Guillaume Nault (5):
>   ipv4: Define inet_sk_init_flowi4() and use it in
>     inet_sk_rebuild_header().
>   ipv4: Use inet_sk_init_flowi4() in ip4_datagram_release_cb().
>   ipv4: Use inet_sk_init_flowi4() in inet_csk_rebuild_route().
>   ipv4: Use inet_sk_init_flowi4() in __ip_queue_xmit().
>   l2tp: Use inet_sk_init_flowi4() in l2tp_ip_sendmsg().
> 
> [...]

Here is the summary with links:
  - [net-next,1/5] ipv4: Define inet_sk_init_flowi4() and use it in inet_sk_rebuild_header().
    https://git.kernel.org/netdev/net-next/c/1dbdce30f040
  - [net-next,2/5] ipv4: Use inet_sk_init_flowi4() in ip4_datagram_release_cb().
    https://git.kernel.org/netdev/net-next/c/5be1323b5041
  - [net-next,3/5] ipv4: Use inet_sk_init_flowi4() in inet_csk_rebuild_route().
    https://git.kernel.org/netdev/net-next/c/42e5ffc385f3
  - [net-next,4/5] ipv4: Use inet_sk_init_flowi4() in __ip_queue_xmit().
    https://git.kernel.org/netdev/net-next/c/148721f8e04a
  - [net-next,5/5] l2tp: Use inet_sk_init_flowi4() in l2tp_ip_sendmsg().
    https://git.kernel.org/netdev/net-next/c/c63e9f3b89d3

You are awesome, thank you!