diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-03 20:18:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-04 23:07:07 +0200 |
commit | 0eb8745e03c9ed2a7412c7a844ebc4f0e4f80de4 (patch) | |
tree | 153494c5892017e5043bfc0e9f37d3dd464d5eeb /net/tls/tls_main.c | |
parent | net/tls: move TOE-related code to a separate file (diff) | |
download | linux-0eb8745e03c9ed2a7412c7a844ebc4f0e4f80de4.tar.xz linux-0eb8745e03c9ed2a7412c7a844ebc4f0e4f80de4.zip |
net/tls: rename tls_hw_* functions tls_toe_*
The tls_hw_* functions are quite confusingly named, since they
are related to the TOE-offload, not TLS_HW offload which doesn't
require TOE. Rename them.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/tls/tls_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c index 9d0cf14b2f7e..483dda6c3155 100644 --- a/net/tls/tls_main.c +++ b/net/tls/tls_main.c @@ -681,8 +681,8 @@ static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG], #endif prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base; - prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_hw_hash; - prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_hw_unhash; + prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash; + prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash; } static int tls_init(struct sock *sk) @@ -692,7 +692,7 @@ static int tls_init(struct sock *sk) tls_build_proto(sk); - if (tls_hw_prot(sk)) + if (tls_toe_bypass(sk)) return 0; /* The TLS ulp is currently supported only for TCP sockets |