Getting vom synch to asynch algorithms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux