]> git.hungrycats.org Git - linux/commit
tls: rx: factor out writing ContentType to cmsg
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 18:31:28 +0000 (11:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:47 +0000 (14:38 +0000)
commit4fd23a600be99c5702b49491899b06ff2f5e51e7
treee91b88aa16511d372aca45207c849ea1c6e48c35
parent9876554897b3912949f1dc0dfe89c0f6dd9663e3
tls: rx: factor out writing ContentType to cmsg

[ Upstream commit 06554f4ffc2595ae52ee80aec4a13bd77d22bed7 ]

cmsg can be filled in during rx_list processing or normal
receive. Consolidate the code.

We don't need to keep the boolean to track if the cmsg was
created. 0 is an invalid content type.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: f7fa16d49837 ("tls: decrement decrypt_pending if no async completion will be called")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/tls/tls_sw.c