tcp_splice: Allow up to 8 MiB as pipe size

It actually improves throughput a bit, if allowed by user limits.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-04-07 11:41:50 +02:00
parent 6e9464ff0a
commit df69be379e

View file

@ -48,7 +48,7 @@
#include "util.h" #include "util.h"
#include "passt.h" #include "passt.h"
#define MAX_PIPE_SIZE (2UL * 1024 * 1024) #define MAX_PIPE_SIZE (8UL * 1024 * 1024)
#define TCP_SPLICE_MAX_CONNS (128 * 1024) #define TCP_SPLICE_MAX_CONNS (128 * 1024)
#define TCP_SPLICE_PIPE_POOL_SIZE 16 #define TCP_SPLICE_PIPE_POOL_SIZE 16
#define TCP_SPLICE_CONN_PRESSURE 30 /* % of splice_conn_count */ #define TCP_SPLICE_CONN_PRESSURE 30 /* % of splice_conn_count */