diff options
author | Vakul Garg <vakul.garg@nxp.com> | 2018-08-10 17:16:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-13 17:41:09 +0200 |
commit | 0b243d004ea640875115d1500ec429a3e9f9fae9 (patch) | |
tree | 2388709906c2696baa252891f4845d8a680b8369 /include/net | |
parent | Merge branch 'ip-faster-in-order-IP-fragments' (diff) | |
download | linux-0b243d004ea640875115d1500ec429a3e9f9fae9.tar.xz 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 'include/net')
-rw-r--r-- | include/net/tls.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/net/tls.h b/include/net/tls.h index d8b3b6578c01..d5c683e8bb22 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -124,10 +124,6 @@ struct tls_sw_context_rx { struct sk_buff *recv_pkt; u8 control; bool decrypted; - - char rx_aad_ciphertext[TLS_AAD_SPACE_SIZE]; - char rx_aad_plaintext[TLS_AAD_SPACE_SIZE]; - }; struct tls_record_info { |