Re: [net PATCH] net: tls, correctly account for copied bytes with multiple sk_msgs

2019-06-11 Thread Andre Tomt
On 11.06.2019 08:15, John Fastabend wrote: tls_sw_do_sendpage needs to return the total number of bytes sent regardless of how many sk_msgs are allocatedt. Unfortunately, copied ^ typo (the value we return up the stack) is zero'd before each new sk_msg is al

[net PATCH] net: tls, correctly account for copied bytes with multiple sk_msgs

2019-06-10 Thread John Fastabend
tls_sw_do_sendpage needs to return the total number of bytes sent regardless of how many sk_msgs are allocatedt. Unfortunately, copied (the value we return up the stack) is zero'd before each new sk_msg is alloced so we only return the copied size of the last sk_msg used. The application will then