ipsec: Layout and prefetching of SA struct 17/29517/2
authorNeale Ranns <nranns@cisco.com>
Fri, 16 Oct 2020 14:03:55 +0000 (14:03 +0000)
committerDamjan Marion <dmarion@me.com>
Mon, 19 Oct 2020 14:34:39 +0000 (14:34 +0000)
commit123b5ebb9816e520d3029146ee233826f4e974bc
tree4fcdc1bb84a8d736d08cefe5f483a93cdbc89553
parent4769ed9c6b85dd3287adc1b725de8a8bed6a5b0e
ipsec: Layout and prefetching of SA struct

Type: improvement

- collect all DP used variables onto 1st or 2nd cache line
- prefetch the 2nd cache line
- in encrypt prefetch the likely location of the trailer.

Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: I44d58f8d2d469ff71a4f4a71578e7cc1acaeba43
src/vnet/ipsec/esp_decrypt.c
src/vnet/ipsec/esp_encrypt.c
src/vnet/ipsec/ipsec_sa.h