]> git.baikalelectronics.ru Git - kernel.git/commit
net: tls: Set async_capable for tls zerocopy only if we see EINPROGRESS
authorDave Watson <davejwatson@fb.com>
Wed, 30 Jan 2019 22:08:21 +0000 (22:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 23:05:07 +0000 (15:05 -0800)
commit327591cee5f7e2f9feb88cdab8c12562c9cf5483
tree1fb586291a821fe00e7524a61b94ffec5975d403
parentace927ba84a30c9f303caadf37eb71d670e022f0
net: tls: Set async_capable for tls zerocopy only if we see EINPROGRESS

Currently we don't zerocopy if the crypto framework async bit is set.
However some crypto algorithms (such as x86 AESNI) support async,
but in the context of sendmsg, will never run asynchronously.  Instead,
check for actual EINPROGRESS return code before assuming algorithm is
async.

Signed-off-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_sw.c