tls: Split tls_sw_release_resources_rx
authorBoris Pismenny <borisp@mellanox.com>
Fri, 13 Jul 2018 11:33:41 +0000 (14:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 07:13:11 +0000 (00:13 -0700)
commit39f56e1a78d647316db330c3b6f4c5637a895e3b
tree465ee43d898f34004c3598b37c3ed6d4a9c12929
parentdafb67f3bb4a58a45fe92c1e362ea6429831688a
tls: Split tls_sw_release_resources_rx

This patch splits tls_sw_release_resources_rx into two functions one
which releases all inner software tls structures and another that also
frees the containing structure.

In TLS_DEVICE we will need to release the software structures without
freeeing the containing structure, which contains other information.

Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_sw.c