[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231206232706.374377-2-john.fastabend@gmail.com>
Date: Wed, 6 Dec 2023 15:27:05 -0800
From: John Fastabend <john.fastabend@...il.com>
To: kuba@...nel.org,
jannh@...gle.com,
daniel@...earbox.net
Cc: john.fastabend@...il.com,
borisp@...dia.com,
bpf@...r.kernel.org,
netdev@...r.kernel.org
Subject: [PATCH net 1/2] net: tls, update curr on splice as well
The curr pointer must also be updated on the splice similar to how
we do this for other copy types.
Fixes: d829e9c4112b ("tls: convert to generic sk_msg interface")
Signed-off-by: John Fastabend <john.fastabend@...il.com>
---
net/tls/tls_sw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c
index 316f76187962..e37b4d2e2acd 100644
--- a/net/tls/tls_sw.c
+++ b/net/tls/tls_sw.c
@@ -952,6 +952,8 @@ static int tls_sw_sendmsg_splice(struct sock *sk, struct msghdr *msg,
}
sk_msg_page_add(msg_pl, page, part, off);
+ msg_pl->sg.copybreak = 0;
+ msg_pl->sg.curr = msg_pl->sg.end;
sk_mem_charge(sk, part);
*copied += part;
try_to_copy -= part;
--
2.33.0
Powered by blists - more mailing lists