]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: Add force_resync for driver resync
authorTariq Toukan <tariqt@mellanox.com>
Wed, 27 May 2020 09:25:26 +0000 (12:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 22:07:13 +0000 (15:07 -0700)
commit30302fb53b5752f95c1d00f4a54dc81184660404
tree4f8773996325ed0fa058d3c99e12e4c88f8110f5
parentdc8fd3ce34da74e988a223b0651ce03af5ff3b3a
net/tls: Add force_resync for driver resync

This patch adds a field to the tls rx offload context which enables
drivers to force a send_resync call.

This field can be used by drivers to request a resync at the next
possible tls record. It is beneficial for hardware that provides the
resync sequence number asynchronously. In such cases, the packet that
triggered the resync does not contain the information required for a
resync. Instead, the driver requests resync for all the following
TLS record until the asynchronous notification with the resync request
TCP sequence arrives.

A following series for mlx5e ConnectX-6DX TLS RX offload support will
use this mechanism.

Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_device.c