Re: [PATCH net] net: tls: prevent false connection termination with offload

2019-04-01 Thread David Miller
From: Jakub Kicinski Date: Thu, 28 Mar 2019 14:54:43 -0700 > Only decrypt_internal() performs zero copy on rx, all paths > which don't hit decrypt_internal() must set zc to false, > otherwise tls_sw_recvmsg() may return 0 causing the application > to believe that that connection got closed. > >

Re: [PATCH net] net: tls: prevent false connection termination with offload

2019-03-28 Thread Jakub Kicinski
On Thu, 28 Mar 2019 14:54:43 -0700, Jakub Kicinski wrote: > Only decrypt_internal() performs zero copy on rx, all paths > which don't hit decrypt_internal() must set zc to false, > otherwise tls_sw_recvmsg() may return 0 causing the application > to believe that that connection got closed. > > Cur

[PATCH net] net: tls: prevent false connection termination with offload

2019-03-28 Thread Jakub Kicinski
Only decrypt_internal() performs zero copy on rx, all paths which don't hit decrypt_internal() must set zc to false, otherwise tls_sw_recvmsg() may return 0 causing the application to believe that that connection got closed. Currently this happens with device offload when new record is first read