]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: Use inet_sk_init_flowi4() in __ip_queue_xmit().
authorGuillaume Nault <gnault@redhat.com>
Mon, 16 Dec 2024 17:21:51 +0000 (18:21 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 21:50:09 +0000 (13:50 -0800)
commit148721f8e04a10a3b9c51f030c9be0d15b0a4d17
treefe897728b1985128c685e679f60c3140c72cabe5
parent42e5ffc385f3b0790c6cd5b54d3396a6c772d3b6
ipv4: Use inet_sk_init_flowi4() in __ip_queue_xmit().

Use inet_sk_init_flowi4() to automatically initialise the flowi4
structure in __ip_queue_xmit() instead of passing parameters manually
to ip_route_output_ports().

Override ->flowi4_tos with the value passed as parameter since that's
required by SCTP.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Link: https://patch.msgid.link/37e64ffbd9adac187b14aa9097b095f5c86e85be.1734357769.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ip_output.c