From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] tls: Remove redundant vars from tls record structure Date: Sat, 29 Sep 2018 11:41:58 -0700 (PDT) Message-ID: <20180929.114158.391869595104056084.davem@davemloft.net> References: <20180926105208.18515-1-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, doronrk@fb.com To: vakul.garg@nxp.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:57020 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727405AbeI3BLf (ORCPT ); Sat, 29 Sep 2018 21:11:35 -0400 In-Reply-To: <20180926105208.18515-1-vakul.garg@nxp.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Vakul Garg Date: Wed, 26 Sep 2018 16:22:08 +0530 > Structure 'tls_rec' contains sg_aead_in and sg_aead_out which point > to a aad_space and then chain scatterlists sg_plaintext_data, > sg_encrypted_data respectively. Rather than using chained scatterlists > for plaintext and encrypted data in aead_req, it is efficient to store > aad_space in sg_encrypted_data and sg_plaintext_data itself in the > first index and get rid of sg_aead_in, sg_aead_in and further chaining. > > This requires increasing size of sg_encrypted_data & sg_plaintext_data > arrarys by 1 to accommodate entry for aad_space. The code which uses > sg_encrypted_data and sg_plaintext_data has been modified to skip first > index as it points to aad_space. > > Signed-off-by: Vakul Garg Applied, thanks.