]> git.baikalelectronics.ru Git - kernel.git/commit
tls: Fix write space handling
authorBoris Pismenny <borisp@mellanox.com>
Wed, 27 Feb 2019 15:38:04 +0000 (17:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 06:10:16 +0000 (22:10 -0800)
commit8e888f10ce83b505a11add2f9567b82c7a752b63
tree1fd12490ff9e33b93b9b503c89e2c9cb48c08082
parentbd572e8862f51e5b243596c34121463870927aa6
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: b574142da9d5 ("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>
include/net/tls.h
net/tls/tls_device.c
net/tls/tls_main.c
net/tls/tls_sw.c