udp6: pass flow in ip6_make_skb together with cork
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 27 Jan 2022 00:36:28 +0000 (00:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Jan 2022 03:46:11 +0000 (19:46 -0800)
commitf37a4cc6bb0ba08c2d9fd7d18a1da87161cbb7f9
tree6d1b3be1dfc80b4676021fb7363f5a3b5a8fdbb2
parentf3b46a3e8c403095d61fc7d7047cf3e3b6f44684
udp6: pass flow in ip6_make_skb together with cork

Another preparation patch. inet_cork_full already contains a field for
iflow, so we can avoid passing a separate struct iflow6 into
__ip6_append_data() and ip6_make_skb(), and use the flow stored in
inet_cork_full. Make sure callers set cork->fl, i.e. we init it in
ip6_append_data() and before calling ip6_make_skb().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ipv6.h
net/ipv6/ip6_output.c
net/ipv6/udp.c