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-08-08 04:55:11 +0200
commitba3fd28ae2d0d0e2b332d5ae3243c34e2ef3e6cf (patch)
tree1c32c4d1098576a5676fa0117e9b561973a3e97a /ncr-int.h
parentd17bb99719c47e33b18c47c868357c89b949d6db (diff)
downloadcryptodev-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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ncr-int.h b/ncr-int.h
index 60d64ad..96754f1 100644
--- a/ncr-int.h
+++ b/ncr-int.h
@@ -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);