tls: rx: device: keep the zero copy status with offload
authorJakub Kicinski <kuba@kernel.org>
Fri, 22 Jul 2022 23:50:30 +0000 (16:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 21:38:51 +0000 (14:38 -0700)
commitd4e5db6452211467f668521f5a3bd3c3928918e1
treedf5863e1025a26d4ed2842d7c2e38761ec306b50
parentb93f5700164dabc59f5c82857dbe571e0ccb2d35
tls: rx: device: keep the zero copy status with offload

The non-zero-copy path assumes a full skb with decrypted contents.
This means the device offload would have to CoW the data. Try
to keep the zero-copy status instead, copy the data to user space.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls.h
net/tls/tls_strp.c
net/tls/tls_sw.c