From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next v3 1/1] net/tls: Combined memory allocation for decryption request Date: Mon, 13 Aug 2018 08:42:40 -0700 (PDT) Message-ID: <20180813.084240.2041358561255548966.davem@davemloft.net> References: <20180810151641.14580-1-vakul.garg@nxp.com> <20180810151641.14580-2-vakul.garg@nxp.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, borisp@mellanox.com, aviadye@mellanox.com, davejwatson@fb.com To: vakul.garg@nxp.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:52704 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728455AbeHMSZa (ORCPT ); Mon, 13 Aug 2018 14:25:30 -0400 In-Reply-To: <20180810151641.14580-2-vakul.garg@nxp.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Vakul Garg Date: Fri, 10 Aug 2018 20:46:41 +0530 > 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 > --- > > Changes since v2: > - Rebased to not require following Doron Roberts-Kedes's patch. > "net/tls: Calculate nsg for zerocopy path without skb_cow_data." Applied.