From 37c228ada88b7fa0001659b13c34a783ba75df83 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 28 Mar 2022 16:56:01 +0200 Subject: tap, tcp, udp, icmp: Cut down on some oversized buffers The existing sizes provide no measurable differences in throughput and packet rates at this point. They were probably needed as batched implementations were not complete, but they can be decreased quite a bit now. Signed-off-by: Stefano Brivio --- tcp_splice.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tcp_splice.c') diff --git a/tcp_splice.c b/tcp_splice.c index 714571c..3f2ef2e 100644 --- a/tcp_splice.c +++ b/tcp_splice.c @@ -102,10 +102,10 @@ struct tcp_splice_conn { #define RCVLOWAT_ACT_B BIT(5) #define CLOSING BIT(6) - uint64_t a_read; - uint64_t a_written; - uint64_t b_read; - uint64_t b_written; + uint32_t a_read; + uint32_t a_written; + uint32_t b_read; + uint32_t b_written; }; #define CONN_V6(x) (x->flags & SOCK_V6) @@ -553,7 +553,7 @@ void tcp_sock_handler_splice(struct ctx *c, union epoll_ref ref, { uint8_t lowat_set_flag, lowat_act_flag; int from, to, *pipes, eof, never_read; - uint64_t *seq_read, *seq_write; + uint32_t *seq_read, *seq_write; struct tcp_splice_conn *conn; if (ref.r.p.tcp.tcp.listen) { -- cgit v1.2.3