Closed djwatson closed 8 years ago
This was pretty close in https://github.com/ktls/af_ktls/pull/67
The main issue was a memory leak if pages aren't allocated with __GFP_COMP - apparently kernel_sendpage expects compound pages. skb_alloc always allocates them this way.
Updated both tls_sendmsg and tls_sendpage to use kernel_sendpage.
LGTM as well
This was pretty close in https://github.com/ktls/af_ktls/pull/67
The main issue was a memory leak if pages aren't allocated with __GFP_COMP - apparently kernel_sendpage expects compound pages. skb_alloc always allocates them this way.
Updated both tls_sendmsg and tls_sendpage to use kernel_sendpage.