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

2019-03-13 Thread David Miller
From: Vakul Garg Date: Tue, 12 Mar 2019 08:22:57 + > 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, t

[PATCH net v2] 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,