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)
commit9cfeece346c1c6cb63116cb8951cd58793247155
tree7d58da182b6c11c390f0615f0b8fef2fa64389c4
parent386ee722096e808551d0ccb16fa42c9fad2a3734
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