rxrpc: Allocate an skcipher each time needed rather than reusing
authorDavid Howells <dhowells@redhat.com>
Fri, 4 Nov 2022 23:13:40 +0000 (23:13 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 8 Nov 2022 16:42:28 +0000 (16:42 +0000)
commit30d95efe06e18bd55691902bb4ec873e4b21a754
treec6e074655bcde35e621be4e6d2fc64668423d4cf
parent1fc4fa2ac93dcf3542f2dc6f7ff88fb022da5116
rxrpc: Allocate an skcipher each time needed rather than reusing

In the rxkad security class, allocate the skcipher used to do packet
encryption and decription rather than allocating one up front and reusing
it for each packet.  Reusing the skcipher precludes doing crypto in
parallel.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
net/rxrpc/ar-internal.h
net/rxrpc/rxkad.c