summaryrefslogtreecommitdiffstats
path: root/ncr-int.h
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-28 01:11:30 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-07-28 01:35:06 +0200
commitbc64c437410a2339eb1437280c9761c565032d4b (patch)
tree0dd610e0e90bb06162526eef0a434d9bfba40252 /ncr-int.h
parent16a6c980b405924a26fec8508bb6181897402bec (diff)
downloadcryptodev-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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ncr-int.h b/ncr-int.h
index 84761ff..ba0b69b 100644
--- a/ncr-int.h
+++ b/ncr-int.h
@@ -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);