tls: rx: don't handle async in tls_sw_advance_skb()
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 18:31:29 +0000 (11:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Apr 2022 16:32:11 +0000 (17:32 +0100)
commitfc8da80f990696a50ea76628daca6e63331b18b7
tree7d58da182b6c11c390f0615f0b8fef2fa64389c4
parent06554f4ffc2595ae52ee80aec4a13bd77d22bed7
tls: rx: don't handle async in tls_sw_advance_skb()

tls_sw_advance_skb() caters to the async case when skb argument
is NULL. In that case it simply unpauses the strparser.

These are surprising semantics to a person reading the code,
and result in higher LoC, so inline the __strp_unpause and
only call tls_sw_advance_skb() when we actually move past
an skb.

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