linux/net/tls
Jakub Kicinski 318892ac06 net/tls: don't arm strparser immediately in tls_set_sw_offload()
In tls_set_device_offload_rx() we prepare the software context
for RX fallback and proceed to add the connection to the device.
Unfortunately, software context prep includes arming strparser
so in case of a later error we have to release the socket lock
to call strp_done().

In preparation for not releasing the socket lock half way through
callbacks move arming strparser into a separate function.
Following patches will make use of that.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-07-22 16:04:16 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
tls_device_fallback.c net/tls: fix socket wmem accounting on fallback with netem 2019-07-08 20:21:10 -07:00
tls_device.c net/tls: don't arm strparser immediately in tls_set_sw_offload() 2019-07-22 16:04:16 +02:00
tls_main.c net/tls: don't arm strparser immediately in tls_set_sw_offload() 2019-07-22 16:04:16 +02:00
tls_sw.c net/tls: don't arm strparser immediately in tls_set_sw_offload() 2019-07-22 16:04:16 +02:00