Re: [PATCH net] net/tls: Inform user space about send buffer availability

2019-03-12 Thread Boris Pismenny
Hi Vakul, On 3/12/2019 9:09 AM, Vakul Garg wrote: > A previous fix ("tls: Fix write space handling") assumed that > user space application gets informed about the socket send buffer > availability when tls_push_sg() gets called. Inside tls_push_sg(), in > case do_tcp_sendpages() returns 0, the fun

[PATCH net] net/tls: Inform user space about send buffer availability

2019-03-12 Thread Vakul Garg
A previous fix ("tls: Fix write space handling") assumed that user space application gets informed about the socket send buffer availability when tls_push_sg() gets called. Inside tls_push_sg(), in case do_tcp_sendpages() returns 0, the function returns without calling ctx->sk_write_space. Further,