tls: support for Inline tls record
authorAtul Gupta <atul.gupta@chelsio.com>
Sat, 31 Mar 2018 16:11:52 +0000 (21:41 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 03:37:32 +0000 (23:37 -0400)
commitdd0bed1665d6ca17efd747a90a0bb804b4bf2005
tree2529ba4dc3878437e1a358a8e4a12a731ca55976
parentd4069fe6fc91d496e4d1fe38b1a8b71aeb181c50
tls: support for Inline tls record

Facility to register Inline TLS drivers to net/tls. Setup
TLS_HW_RECORD prot to listen on offload device.

Cases handled
- Inline TLS device exists, setup prot for TLS_HW_RECORD
- Atleast one Inline TLS exists, sets TLS_HW_RECORD.
- If non-inline device establish connection, move to TLS_SW_TX

Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_main.c