[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180802165058.GB66257@sharrissfo-mbp.dhcp.thefacebook.com>
Date: Thu, 2 Aug 2018 09:50:58 -0700
From: Dave Watson <davejwatson@...com>
To: Vakul Garg <vakul.garg@....com>
CC: <netdev@...r.kernel.org>, <borisp@...lanox.com>,
<aviadye@...lanox.com>, <davem@...emloft.net>
Subject: Re: [PATCH net-next] net/tls: Always get number of sg entries for
skb to be decrypted
On 08/02/18 09:50 PM, Vakul Garg wrote:
> Function decrypt_skb() made a bad assumption that number of sg entries
> required for mapping skb to be decrypted would always be less than
> MAX_SKB_FRAGS. The required count of sg entries for skb should always be
> calculated. If they cannot fit in local array sgin_arr[], allocate them
> from heap irrespective whether it is zero-copy case or otherwise. The
> change also benefits the non-zero copy case as we could use sgin_arr[]
> instead of always allocating sg entries from heap.
>
> Signed-off-by: Vakul Garg <vakul.garg@....com>
Looks great, thanks.
Reviewed-by: Dave Waston <davejwatson@...com>
Powered by blists - more mailing lists