tls: Fill software context without allocation
authorBoris Pismenny <borisp@mellanox.com>
Fri, 13 Jul 2018 11:33:42 +0000 (14:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 07:13:11 +0000 (00:13 -0700)
commitb190a587c634a8559e4ceabeb0468e93db49789a
tree573b0b19fc4b734de7b150a28dfea81603f3b17a
parent39f56e1a78d647316db330c3b6f4c5637a895e3b
tls: Fill software context without allocation

This patch allows tls_set_sw_offload to fill the context in case it was
already allocated previously.

We will use it in TLS_DEVICE to fill the RX software context.

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