]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3308fe02177c09ccefa4f1929f6f63a200957ce4
tree88a75caeecb00e8fc38d0a5aa4e1c598f0fee650
parentfb7162620d6c0ad8f7e74a535c47fa216cd402c4
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