HomeFreeBSD

ipsec: only update lastused when it changes

Description

ipsec: only update lastused when it changes

to limit cache-line bouncing.

Note that as there is no atomic_store we are hoping the compiler wont
speculatively do the store. It is not employed because the size depends
on target arch.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D38433

Details

Provenance
mjgAuthored on Feb 8 2023, 9:53 AM
Differential Revision
D38433: ipsec: only update lastused when it changes
Parents
rG6b9acd1bfba7: Exclude MMCCAM kernels from make universe
Branches
Unknown
Tags
Unknown