ipsec: better pack outbound SA runtime data 67/42367/2
authorDamjan Marion <[email protected]>
Thu, 13 Feb 2025 22:52:27 +0000 (23:52 +0100)
committerDamjan Marion <[email protected]>
Thu, 13 Feb 2025 23:16:42 +0000 (23:16 +0000)
Type: improvement
Change-Id: I9a0437dcfaf5e6930bb7fa057866ea36e7ca328f
Signed-off-by: Damjan Marion <[email protected]>
src/vnet/ipsec/ipsec_sa.h

index 5ce63a5..9d8c90b 100644 (file)
@@ -180,20 +180,20 @@ typedef struct
   u16 use_anti_replay : 1;
   u16 drop_no_crypto : 1;
   u16 is_async : 1;
-  clib_pcg64i_random_t iv_prng;
   u16 cipher_op_id;
   u16 integ_op_id;
   u8 cipher_iv_size;
   u8 esp_block_align;
   u8 integ_icv_size;
+  ip_dscp_t t_dscp;
+  tunnel_encap_decap_flags_t tunnel_flags;
   u16 thread_index;
+  u16 async_op_id;
   u32 salt;
-  u64 seq64;
   u32 spi_be;
-  ip_dscp_t t_dscp;
+  u64 seq64;
   dpo_id_t dpo;
-  tunnel_encap_decap_flags_t tunnel_flags;
-  u16 async_op_id;
+  clib_pcg64i_random_t iv_prng;
   vnet_crypto_key_index_t cipher_key_index;
   vnet_crypto_key_index_t integ_key_index;
   union