ipsec: efficient layout of ESP per thread data
Type: fix
@@ -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)
