From f2b6edb149a32f455ce3ee13aff1acd0a3c2ab1d Mon Sep 17 00:00:00 2001 From: Alexander Chernavin Date: Wed, 29 Mar 2023 16:09:37 +0000 Subject: wireguard: add support for chained buffers Type: feature With this change, packets that are larger than a single buffer can fit will be able to be sent and received over a Wireguard tunnel. Also, cover this with tests. Signed-off-by: Alexander Chernavin Change-Id: Ifaf7325676d728580097bc389b51a9be39e44d88 --- src/plugins/wireguard/wireguard.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/wireguard/wireguard.h') diff --git a/src/plugins/wireguard/wireguard.h b/src/plugins/wireguard/wireguard.h index 3a6248ba6b5..05cefc4f073 100644 --- a/src/plugins/wireguard/wireguard.h +++ b/src/plugins/wireguard/wireguard.h @@ -31,9 +31,12 @@ typedef struct wg_per_thread_data_t_ { CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); vnet_crypto_op_t *crypto_ops; + vnet_crypto_op_t *chained_crypto_ops; + vnet_crypto_op_chunk_t *chunks; vnet_crypto_async_frame_t **async_frames; u8 data[WG_DEFAULT_DATA_SIZE]; } wg_per_thread_data_t; + typedef struct { /* convenience */ -- cgit 1.2.3-korg