tls: rx: pull most of zc check out of the loop
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 18:31:31 +0000 (11:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Apr 2022 16:32:11 +0000 (17:32 +0100)
commitba13609df18dabf1d892a247201bd3fe38012ff9
tree88a75caeecb00e8fc38d0a5aa4e1c598f0fee650
parent7da18bcc5e4cfd14ea520367546c5697e64ae592
tls: rx: pull most of zc check out of the loop

Most of the conditions deciding if zero-copy can be used
do not change throughout the iterations, so pre-calculate
them.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c