summaryrefslogtreecommitdiffhomepage
path: root/src/send.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-16 01:11:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-16 03:21:08 +0200
commit611b057736d735b1e15a54e4781c8ce2c6a5c2ab (patch)
treec77c587e4c1a5af0f2a3e2fc0944723ffd872c5b /src/send.c
parentdc8f89a895835e92b790ceeec9f870d75867cfe3 (diff)
send/receive: reduce number of sg entries
This reduces stack usage to quell warnings on powerpc. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/send.c b/src/send.c
index 5b6d0fe..2bfe80c 100644
--- a/src/send.c
+++ b/src/send.c
@@ -161,7 +161,7 @@ static inline bool skb_encrypt(struct sk_buff *skb,
simd_context_t simd_context)
{
unsigned int padding_len, plaintext_len, trailer_len;
- struct scatterlist sg[MAX_SKB_FRAGS * 2 + 1];
+ struct scatterlist sg[MAX_SKB_FRAGS + 8];
struct message_data *header;
struct sk_buff *trailer;
int num_frags;