tls: rx: strp: factor out copying skb data
authorJakub Kicinski <kuba@kernel.org>
Wed, 17 May 2023 01:50:40 +0000 (18:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 May 2023 07:37:37 +0000 (08:37 +0100)
commitc1c607b1e5d5477d82ca6a86a05a4f10907b33ee
treebef80874dd3982f26490ce6e2234a0dd8503833b
parent8b0c0dc9fbbd01e58a573a41c38885f9e4c17696
tls: rx: strp: factor out copying skb data

We'll need to copy input skbs individually in the next patch.
Factor that code out (without assuming we're copying a full record).

Tested-by: Shai Amiram <samiram@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_strp.c