summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVakul Garg <vakul.garg@nxp.com>2018-08-10 20:46:41 +0530
committerDavid S. Miller <davem@davemloft.net>2018-08-13 08:41:09 -0700
commit0b243d004ea640875115d1500ec429a3e9f9fae9 (patch)
tree2388709906c2696baa252891f4845d8a680b8369 /include
parent78cbac647e61fb20ad615075949ea77cedf74e0c (diff)
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')
-rw-r--r--include/net/tls.h4
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 {