diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-28 01:11:30 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-07-28 01:35:06 +0200 |
commit | bc64c437410a2339eb1437280c9761c565032d4b (patch) | |
tree | 0dd610e0e90bb06162526eef0a434d9bfba40252 /ncr-int.h | |
parent | 16a6c980b405924a26fec8508bb6181897402bec (diff) | |
download | cryptodev-linux-bc64c437410a2339eb1437280c9761c565032d4b.tar.gz cryptodev-linux-bc64c437410a2339eb1437280c9761c565032d4b.tar.xz cryptodev-linux-bc64c437410a2339eb1437280c9761c565032d4b.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
@@ -32,8 +32,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); |