tls: rx: factor out writing ContentType to cmsg
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 18:31:28 +0000 (11:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Apr 2022 16:32:11 +0000 (17:32 +0100)
commit06554f4ffc2595ae52ee80aec4a13bd77d22bed7
tree27d25b4516afaa83deb5f985a62cf6c059cb2a67
parent37943f047bfb88ba4dfc7a522563f57c86d088a0
tls: rx: factor out writing ContentType to cmsg

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>
net/tls/tls_sw.c