]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00f14aa9ceeb8cf14597100c9f13c9ab08206e78
tree6d1b3be1dfc80b4676021fb7363f5a3b5a8fdbb2
parent003468e0f04f23759f87539a7d7f0d5eb2b163b3
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