tls splice: check SPLICE_F_NONBLOCK instead of MSG_DONTWAIT
authorJim Ma <majinjing3@gmail.com>
Fri, 14 May 2021 03:11:02 +0000 (11:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:03:25 +0000 (15:03 -0700)
commit974271e5ed45cfe4daddbeb16224a2156918530e
tree0365fbead681ad04e07133bb4c4ff33f052b9594
parent75016891357a628d2b8acc09e2b9b2576c18d318
tls splice: check SPLICE_F_NONBLOCK instead of MSG_DONTWAIT

In tls_sw_splice_read, checkout MSG_* is inappropriate, should use
SPLICE_*, update tls_wait_data to accept nonblock arguments instead
of flags for recvmsg and splice.

Fixes: c46234ebb4d1 ("tls: RX path for ktls")
Signed-off-by: Jim Ma <majinjing3@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c