Re: [PATCH] crypto: af_alg - add async support to algif_aead

2016-01-20 Thread Herbert Xu
On Wed, Jan 20, 2016 at 12:18:24PM -0800, Tadeusz Struk wrote: > > I tried sock_kmalloc and it will not work. The sysctl_optmem_max by > default is 20480 bytes. The aead ctx by itself takes more than half of > it (11832 bytes). A single async request takes 11408 bytes. > It means we need to use kma

Re: [PATCH] crypto: af_alg - add async support to algif_aead

2016-01-20 Thread Tadeusz Struk
Hi Herbert, On 01/18/2016 04:34 PM, Herbert Xu wrote: >> My understanding is that the sock_kmalloc is mainly used for allocations >> > of the user provided data, because it keeps tracks of how much memory >> > is allocated by a socket, and makes sure that is will not exceed the >> > sysctl_optmem_

Re: [PATCH] crypto: aesni-intel - avoid IPsec re-ordering

2016-01-20 Thread Raj Ammanur
On Wed, Jan 20, 2016 at 12:38 AM, Herbert Xu wrote: > On Wed, Jan 20, 2016 at 12:31:46AM -0800, Raj Ammanur wrote: >> >> RAJ: ok. would it also be useful to be able to set the length as a module >> load time parameter? > > That would be a bad interface. If we wanted to have an adjustable > limit

Re: [PATCH 4/4] hw_random: brcm63xx-rng: document device tree bindings

2016-01-20 Thread Rob Herring
On Sun, Jan 17, 2016 at 10:03:57AM +0100, Álvaro Fernández Rojas wrote: > Documents device tree bindings for random number generator present on Broadcom > BCM6368 SoC. > > Signed-off-by: Álvaro Fernández Rojas > --- > Documentation/devicetree/bindings/rng/brcm,bcm6368.txt | 17 +