tls: rx: don't try to keep the skbs always on the list
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 Jul 2022 05:22:26 +0000 (22:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 10:24:10 +0000 (11:24 +0100)
commit008141de8557479289936e21e7ed6bad50d09443
treed299e91c578658ed18ddcefaf805674d08587efd
parent4cbc325ed6b4dce4910be06d9d6940a8b919c59b
tls: rx: don't try to keep the skbs always on the list

I thought that having the skb either always on the ctx->rx_list
or ctx->recv_pkt will simplify the handling, as we would not
have to remember to flip it from one to the other on exit paths.

This became a little harder to justify with the fix for BPF
sockmaps. Subsequent changes will make the situation even worse.
Queue the skbs only when really needed.

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