diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-16 01:11:58 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-16 03:21:08 +0200 |
commit | 611b057736d735b1e15a54e4781c8ce2c6a5c2ab (patch) | |
tree | c77c587e4c1a5af0f2a3e2fc0944723ffd872c5b /src/send.c | |
parent | dc8f89a895835e92b790ceeec9f870d75867cfe3 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |