From: David S. Miller Date: Mon, 13 Aug 2018 15:41:09 +0000 (-0700) Subject: Merge branch 'net-tls-Combined-memory-allocation-for-decryption-request' X-Git-Tag: v4.19-rc1~140^2~38 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8f78004442202b4ee28657513d78e6bb937e877c;p=users%2Fwilly%2Fxarray.git Merge branch 'net-tls-Combined-memory-allocation-for-decryption-request' Vakul Garg says: ==================== net/tls: Combined memory allocation for decryption request This patch does a combined memory allocation from heap for scatterlists, aead_request, aad and iv for the tls record decryption path. In present code, aead_request is allocated from heap, scatterlists on a conditional basis are allocated on heap or on stack. This is inefficient as it may requires multiple kmalloc/kfree. The initialization vector passed in cryption request is allocated on stack. This is a problem since the stack memory is not dma-able from crypto accelerators. Doing one combined memory allocation for each decryption request fixes both the above issues. It also paves a way to be able to submit multiple async decryption requests while the previous one is pending i.e. being processed or queued. ==================== Signed-off-by: David S. Miller --- 8f78004442202b4ee28657513d78e6bb937e877c