diff options
author | Vakul Garg | 2018-08-10 17:16:41 +0200 |
---|---|---|
committer | David S. Miller | 2018-08-13 17:41:09 +0200 |
commit | 0b243d004ea640875115d1500ec429a3e9f9fae9 (patch) | |
tree | 2388709906c2696baa252891f4845d8a680b8369 /security/smack | |
parent | Merge branch 'ip-faster-in-order-IP-fragments' (diff) | |
download | kernel-qcow2-linux-0b243d004ea640875115d1500ec429a3e9f9fae9.tar.gz kernel-qcow2-linux-0b243d004ea640875115d1500ec429a3e9f9fae9.tar.xz kernel-qcow2-linux-0b243d004ea640875115d1500ec429a3e9f9fae9.zip |
net/tls: Combined memory allocation for decryption request
For preparing decryption request, several memory chunks are required
(aead_req, sgin, sgout, iv, aad). For submitting the decrypt request to
an accelerator, it is required that the buffers which are read by the
accelerator must be dma-able and not come from stack. The buffers for
aad and iv can be separately kmalloced each, but it is inefficient.
This patch does a combined allocation for preparing decryption request
and then segments into aead_req || sgin || sgout || iv || aad.
Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/smack')
0 files changed, 0 insertions, 0 deletions