RE: [net-next v3 1/5] net/tls: Do not enable zero-copy prematurely

2018-07-19 Thread Vakul Garg
.@davemloft.net > Subject: Re: [net-next v3 1/5] net/tls: Do not enable zero-copy prematurely > > Hi Vakul, > > On 7/19/2018 7:16 AM, Vakul Garg wrote: > > Zero-copy mode was left enabled even when zerocopy_from_iter() failed. > > Set the zero-copy mode only when zer

Re: [net-next v3 1/5] net/tls: Do not enable zero-copy prematurely

2018-07-19 Thread Boris Pismenny
Hi Vakul, On 7/19/2018 7:16 AM, Vakul Garg wrote: Zero-copy mode was left enabled even when zerocopy_from_iter() failed. Set the zero-copy mode only when zerocopy_from_iter() succeeds. This leads to removal of argument 'zc' of function decrypt_skb_update(). Function decrypt_skb_update() does

[net-next v3 1/5] net/tls: Do not enable zero-copy prematurely

2018-07-18 Thread Vakul Garg
Zero-copy mode was left enabled even when zerocopy_from_iter() failed. Set the zero-copy mode only when zerocopy_from_iter() succeeds. This leads to removal of argument 'zc' of function decrypt_skb_update(). Function decrypt_skb_update() does not need to check whether ctx->decrypted is set since