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

2016-03-10 Thread Herbert Xu
On Mon, Feb 01, 2016 at 11:17:35AM -0800, Tadeusz Struk wrote: > > @@ -240,6 +255,7 @@ static int aead_sendmsg(struct socket *sock, struct > msghdr *msg, size_t size) > if (!aead_writable(sk)) { > /* user space sent too much data */ >

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

2016-03-10 Thread Herbert Xu
On Mon, Feb 01, 2016 at 11:17:35AM -0800, Tadeusz Struk wrote: > > @@ -240,6 +255,7 @@ static int aead_sendmsg(struct socket *sock, struct > msghdr *msg, size_t size) > if (!aead_writable(sk)) { > /* user space sent too much data */ >

[PATCH v2 2/2] crypto: af_alg - add async support to algif_aead

2016-02-01 Thread Tadeusz Struk
Following the async change for algif_skcipher this patch adds similar async read to algif_aead. changes in v2: - change internal data structures from fixed size arrays, limited to RSGL_MAX_ENTRIES, to linked list model with no artificial limitation. - use sock_kmalloc instead of kmalloc for

[PATCH v2 2/2] crypto: af_alg - add async support to algif_aead

2016-02-01 Thread Tadeusz Struk
Following the async change for algif_skcipher this patch adds similar async read to algif_aead. changes in v2: - change internal data structures from fixed size arrays, limited to RSGL_MAX_ENTRIES, to linked list model with no artificial limitation. - use sock_kmalloc instead of kmalloc for