diff options
author | fabient <fabient@FreeBSD.org> | 2011-03-31 15:23:32 +0000 |
---|---|---|
committer | fabient <fabient@FreeBSD.org> | 2011-03-31 15:23:32 +0000 |
commit | d56170701edd485dd31c6c68254daab567f5d249 (patch) | |
tree | 67cb0da741da7bd58b8f2eaa65607147ebf7f0af /sys/netipsec/xform.h | |
parent | 3666785171ab6fafe3466579d69d661e79599f96 (diff) | |
download | FreeBSD-src-d56170701edd485dd31c6c68254daab567f5d249.zip FreeBSD-src-d56170701edd485dd31c6c68254daab567f5d249.tar.gz |
Optimisation in IPSEC(4):
- Remove contention on ISR during the crypto operation by using rwlock(9).
- Remove a second lookup of the SA in the callback.
Gain on 6 cores CPU with SHA1/AES128 can be up to 30%.
Reviewed by: vanhu
MFC after: 1 month
Diffstat (limited to 'sys/netipsec/xform.h')
-rw-r--r-- | sys/netipsec/xform.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netipsec/xform.h b/sys/netipsec/xform.h index 47e2cfe..e389cab 100644 --- a/sys/netipsec/xform.h +++ b/sys/netipsec/xform.h @@ -75,6 +75,7 @@ struct tdb_crypto { int tc_protoff; /* current protocol offset */ int tc_skip; /* data offset */ caddr_t tc_ptr; /* associated crypto data */ + struct secasvar *tc_sav; /* related SA */ }; struct secasvar; |