Re: [PATCH net v3] net/tls: sendfile fails with ktls offload

2020-10-09 Thread Jakub Kicinski
On Thu, 8 Oct 2020 00:10:21 +0530 Rohit Maheshwari wrote: > At first when sendpage gets called, if there is more data, 'more' in > tls_push_data() gets set which later sets pending_open_record_frags, but > when there is no more data in file left, and last time tls_push_data() > gets called, pendin

Re: [PATCH net v3] net/tls: sendfile fails with ktls offload

2020-10-07 Thread Jakub Kicinski
On Thu, 8 Oct 2020 00:10:21 +0530 Rohit Maheshwari wrote: > At first when sendpage gets called, if there is more data, 'more' in > tls_push_data() gets set which later sets pending_open_record_frags, but > when there is no more data in file left, and last time tls_push_data() > gets called, pendin

[PATCH net v3] net/tls: sendfile fails with ktls offload

2020-10-07 Thread Rohit Maheshwari
At first when sendpage gets called, if there is more data, 'more' in tls_push_data() gets set which later sets pending_open_record_frags, but when there is no more data in file left, and last time tls_push_data() gets called, pending_open_record_frags doesn't get reset. And later when 2 bytes of en