[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180712164653.GA32492@macbook-pro-6.local.dhcp.thefacebook.com>
Date: Thu, 12 Jul 2018 09:46:53 -0700
From: Dave Watson <davejwatson@...com>
To: Boris Pismenny <borisp@...lanox.com>
CC: <davem@...emloft.net>, <netdev@...r.kernel.org>,
<aviadye@...lanox.com>, <saeedm@...lanox.com>
Subject: Re: [PATCH v3 net-next 10/19] tls: Fix zerocopy_from_iter iov
handling
On 07/11/18 10:54 PM, Boris Pismenny wrote:
> zerocopy_from_iter iterates over the message, but it doesn't revert the
> updates made by the iov iteration. This patch fixes it. Now, the iov can
> be used after calling zerocopy_from_iter.
This breaks tests (which I will send up as selftests shortly). I
believe we are depending on zerocopy_from_iter to advance the iter,
and if zerocopy_from_iter returns a failure, then we revert it. So
you can revert it here if you want, but you'd have to advance it if we
actually used it instead.
Powered by blists - more mailing lists