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>
This commit is contained in:
committed by
Jakub Kicinski
parent
f3b46a3e8c
commit
f37a4cc6bb
@ -1533,9 +1533,11 @@ back_from_confirm:
|
||||
struct inet_cork_full cork;
|
||||
struct sk_buff *skb;
|
||||
|
||||
cork.fl.u.ip6 = fl6;
|
||||
|
||||
skb = ip6_make_skb(sk, getfrag, msg, ulen,
|
||||
sizeof(struct udphdr), &ipc6,
|
||||
&fl6, (struct rt6_info *)dst,
|
||||
(struct rt6_info *)dst,
|
||||
msg->msg_flags, &cork);
|
||||
err = PTR_ERR(skb);
|
||||
if (!IS_ERR_OR_NULL(skb))
|
||||
|
Reference in New Issue
Block a user