diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-03-28 16:56:01 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-03-29 15:35:38 +0200 |
commit | 37c228ada88b7fa0001659b13c34a783ba75df83 (patch) | |
tree | 8322a8de553fdf30f89fed48e985547316a01964 /tcp_splice.c | |
parent | 1f4b7fa0d75d25f518047e77c88718ec1cc3f5bb (diff) | |
download | passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.gz passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.bz2 passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.lz passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.xz passt-37c228ada88b7fa0001659b13c34a783ba75df83.tar.zst passt-37c228ada88b7fa0001659b13c34a783ba75df83.zip |
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 <sbrivio@redhat.com>
Diffstat (limited to 'tcp_splice.c')
-rw-r--r-- | tcp_splice.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) { |