diff options
author | Boris Pismenny <borisp@mellanox.com> | 2019-02-27 18:38:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-04 09:10:16 +0300 |
commit | 7463d3a2db0efea3701aab5eeb310e0d8157aff7 (patch) | |
tree | 1fd12490ff9e33b93b9b503c89e2c9cb48c08082 /include | |
parent | 94850257cf0f88b20db7644f28bfedc7d284de15 (diff) | |
download | linux-7463d3a2db0efea3701aab5eeb310e0d8157aff7.tar.xz |
tls: Fix write space handling
TLS device cannot use the sw context. This patch returns the original
tls device write space handler and moves the sw/device specific portions
to the relevant files.
Also, we remove the write_space call for the tls_sw flow, because it
handles partial records in its delayed tx work handler.
Fixes: a42055e8d2c3 ("net/tls: Add support for async encryption of records for performance")
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/tls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/tls.h b/include/net/tls.h index a528a082da73..a5a938583295 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -519,6 +519,9 @@ static inline bool tls_sw_has_ctx_tx(const struct sock *sk) return !!tls_sw_ctx_tx(ctx); } +void tls_sw_write_space(struct sock *sk, struct tls_context *ctx); +void tls_device_write_space(struct sock *sk, struct tls_context *ctx); + static inline struct tls_offload_context_rx * tls_offload_ctx_rx(const struct tls_context *tls_ctx) { |