diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-28 01:11:30 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-08 04:55:11 +0200 |
commit | ba3fd28ae2d0d0e2b332d5ae3243c34e2ef3e6cf (patch) | |
tree | 1c32c4d1098576a5676fa0117e9b561973a3e97a /ncr-int.h | |
parent | d17bb99719c47e33b18c47c868357c89b949d6db (diff) | |
download | cryptodev-linux-ba3fd28ae2d0d0e2b332d5ae3243c34e2ef3e6cf.tar.gz cryptodev-linux-ba3fd28ae2d0d0e2b332d5ae3243c34e2ef3e6cf.tar.xz cryptodev-linux-ba3fd28ae2d0d0e2b332d5ae3243c34e2ef3e6cf.zip |
Use <linux/idr.h> for session ID allocation and lookup
Diffstat (limited to 'ncr-int.h')
-rw-r--r-- | ncr-int.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -33,8 +33,6 @@ struct algo_properties_st { }; struct session_item_st { - struct list_head list; - const struct algo_properties_st *algorithm; ncr_crypto_op_t op; @@ -104,7 +102,8 @@ struct ncr_lists { struct idr key_idr; /* sessions */ - struct list_sem_st sessions; + struct mutex session_idr_mutex; + struct idr session_idr; }; void* ncr_init_lists(void); |