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

2018-07-18 Thread David Miller
From: Vakul Garg Date: Mon, 16 Jul 2018 21:27:11 +0530 > 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

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

2018-07-16 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