[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180721.192532.520509909556885779.davem@davemloft.net>
Date: Sat, 21 Jul 2018 19:25:32 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: vakul.garg@....com
Cc: netdev@...r.kernel.org, borisp@...lanox.com, aviadye@...lanox.com,
davejwatson@...com
Subject: Re: [net-next v5 3/3] net/tls: Remove redundant array allocation.
From: Vakul Garg <vakul.garg@....com>
Date: Thu, 19 Jul 2018 21:56:13 +0530
> In function decrypt_skb(), array allocation in case when sgout is NULL
> is unnecessary. Instead, local variable sgin_arr[] can be used.
>
> Signed-off-by: Vakul Garg <vakul.garg@....com>
Hmmm...
Dave, can you take a look at this? Do you think there might have
been a reason you felt that you needed to dynamically allocate
the scatterlists when you COW and skb and do in-place decryption?
I guess this change is ok, nsg can only get smaller when the SKB
is COW'd.
Powered by blists - more mailing lists