| To: | Evgeniy Polyakov <johnpol@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: Asynchronous crypto layer. |
| From: | James Morris <jmorris@xxxxxxxxxx> |
| Date: | Tue, 14 Dec 2004 02:23:55 -0500 (EST) |
| Cc: | jamal <hadi@xxxxxxxxxx>, Michal Ludvig <michal@xxxxxxxx>, <netdev@xxxxxxxxxxx>, <cryptoapi@xxxxxxxxxxxxxx> |
| In-reply-to: | <20041102191235.609efde6@zanzibar.2ka.mipt.ru> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Tue, 2 Nov 2004, Evgeniy Polyakov wrote:
Some feedback:
+#define session_completed(s) (s->ci.flags & SESSION_COMPLETED)
+#define complete_session(s) do {s->ci.flags |= SESSION_COMPLETED;} while(0)
+#define uncomplete_session(s) do {s->ci.flags &= ~SESSION_COMPLETED;} while
(0)
etc.
Please use static inlines for all of these things.
Are these supposed to be exported to userspace? Why?
+struct crypto_conn_data
+{
+ char name[SCACHE_NAMELEN];
+ __u16 cmd;
Again, exporting to userspace?
+ list_for_each_entry_safe(__dev, n, &cdev_list, cdev_entry)
+ {
+ if (compare_device(__dev, dev))
+ {
Incorrect coding style (and many more).
As mentioned before, pluggable load balacers are not needed now, and
complicate the code.
- James
--
James Morris
<jmorris@xxxxxxxxxx>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Asynchronous crypto layer., James Morris |
|---|---|
| Next by Date: | Re: [2.6 patch] net/bluetooth/: misc possible cleanups, Marcel Holtmann |
| Previous by Thread: | Re: Asynchronous crypto layer., Evgeniy Polyakov |
| Next by Thread: | Re: Asynchronous crypto layer., Evgeniy Polyakov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |