summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRajesh Goel <rajegoel@cisco.com>2020-03-17 14:43:09 +0530
committerDamjan Marion <dmarion@me.com>2020-03-21 12:48:24 +0000
commit7a6f5a4fee17bd34f70f9eb25a094764be39d81b (patch)
treee90867a2df748e8e1711f3b63acac287d123d352 /src
parent39d0285fca412ea2921fe1ae98a231894cd193cf (diff)
ipsec: efficient layout of ESP per thread data
Type: fix Change-Id: I1ba921503a41ca37ce5c920682893617740571a9 Signed-off-by: Rajesh Goel <rajegoel@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ipsec/esp_decrypt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vnet/ipsec/esp_decrypt.c b/src/vnet/ipsec/esp_decrypt.c
index f29dacb3dc7..36689480538 100644
--- a/src/vnet/ipsec/esp_decrypt.c
+++ b/src/vnet/ipsec/esp_decrypt.c
@@ -98,6 +98,7 @@ format_esp_decrypt_trace (u8 * s, va_list * args)
typedef struct
{
+ vlib_buffer_t *lb;
union
{
struct
@@ -111,15 +112,15 @@ typedef struct
};
u32 seq;
+ u32 free_buffer_index;
i16 current_data;
i16 current_length;
u16 hdr_sz;
- vlib_buffer_t *lb;
- u32 free_buffer_index;
u8 icv_removed;
+ u8 __unused;
} esp_decrypt_packet_data_t;
-STATIC_ASSERT_SIZEOF (esp_decrypt_packet_data_t, 5 * sizeof (u64));
+STATIC_ASSERT_SIZEOF (esp_decrypt_packet_data_t, 4 * sizeof (u64));
#define ESP_ENCRYPT_PD_F_FD_TRANSPORT (1 << 2)