diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2021-09-05 08:29:22 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2021-09-05 08:35:56 +0900 |
commit | 22bb3b79290ec5970b74fa6e9eb313802d075c82 (patch) | |
tree | 570cf7cdfff0247cbbaa9dcfdc19c187d142838d | |
parent | 732b33d0dbf17e9483f0b50385bf606f724f50a2 (diff) | |
download | linux-stable-22bb3b79290ec5970b74fa6e9eb313802d075c82.tar.gz linux-stable-22bb3b79290ec5970b74fa6e9eb313802d075c82.tar.bz2 linux-stable-22bb3b79290ec5970b74fa6e9eb313802d075c82.zip |
net/9p: increase tcp max msize to 1MB
Historically TCP has been limited to 64K buffers, but increasing
msize provides huge performance benefits especially as latency
increase so allow for bigger buffers.
Ideally further improvements could change the allocation from the
current contiguous chunk in slab (kmem_cache) to some scatter-gather
compatible API...
Note this only increases the max possible setting, not the default
value.
Link: http://lkml.kernel.org/r/YTQB5jCbvhmCWzNd@codewreck.org
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
-rw-r--r-- | net/9p/trans_fd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index f4dd0456beaf..007bbcc68010 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c @@ -34,7 +34,7 @@ #include <linux/syscalls.h> /* killme */ #define P9_PORT 564 -#define MAX_SOCK_BUF (64*1024) +#define MAX_SOCK_BUF (1024*1024) #define MAXPOLLWADDR 2 static struct p9_trans_module p9_tcp_trans; |