From: Markus Stockhausen <markus.stockhausen@gmx.de>
To: <linux-crypto@vger.kernel.org>
Subject: Getting vom synch to asynch algorithms
Date: Sun, 15 Jan 2012 14:25:34 +0100 [thread overview]
Message-ID: <CB38925E.3194%markus.stockhausen@gmx.de> (raw)
Hello,
in the last weeks I programmed a small assembler optimized MIPS kernel
module that provides basic IPsec algorithms CBC(AES), SHA1 and MD5. The
OpenWrt driven router can now achieve higher throughputs than with
standard modules.
During my LAN direct-connect tests I noticed that the device will
lockup because of being exclusively busy in encryption and decryption
routines. It does not matter if I use the generic modules or the new
one. Everything works like a charm if the device can handle IPsec
traffic with a CPU load of less than 100%.
Maybe I'm wrong but as far as I understand providing async algorithms
should enable the device to be not exclusively blocked by IPsec
handling (although it is processed totally in software). From what
I can see this requires registering the module in a different way.
I checked several existing modules but I only understand the cornerstones
of all of this.
- provide async_funct(struct ablkcipher_request *req)
- Do what inside?
- ...
- finally call the encrpytion/decryption algorithm already implemented
Some modules make work of queues others seem to call the encryption
directly. I'm somehow confused of what the async_funct should do
when working with a software algorithm.
Maybe someone can enlighten me. These days a pcrypt module was mentioned
that could help, but my router has only on CPU so there is no load to
distribute. What will be the best way to make the kernel stable with
high encryption CPU load?
Thanks in advance.
Markus
next reply other threads:[~2012-01-15 13:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-15 13:25 Markus Stockhausen [this message]
2012-01-17 9:58 ` Getting vom synch to asynch algorithms Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CB38925E.3194%markus.stockhausen@gmx.de \
--to=markus.stockhausen@gmx.de \
--cc=linux-crypto@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.