[PATCH v12 12/26] nvme-tcp: Only enable offload with TLS if the driver supports it
Sagi Grimberg
sagi at grimberg.me
Wed Aug 9 01:05:01 PDT 2023
On 7/12/23 19:14, Aurelien Aptel wrote:
> Check if ULP offload driver supports ULP-over-TLS before enabling the
> offload with tls.
>
> Signed-off-by: Aurelien Aptel <aaptel at nvidia.com>
> Signed-off-by: Shai Malin <smalin at nvidia.com>
> Reviewed-by: Max Gurtovoy <mgurtovoy at nvidia.com>
> ---
> drivers/nvme/host/tcp.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
> index e560bdf3a023..afb3dedcbc0c 100644
> --- a/drivers/nvme/host/tcp.c
> +++ b/drivers/nvme/host/tcp.c
> @@ -367,6 +367,10 @@ static inline bool is_netdev_ulp_offload_active(struct net_device *netdev,
> if (!nvme_tcp_ddp_query_limits(netdev, queue))
> return false;
>
> + /* If we are using TLS and netdev doesn't support it, do not offload */
> + if (queue->ctrl->ctrl.opts->tls && !queue->ddp_limits.tls)
> + return false;
Same for this, fold to the first patch.
Other than that I had a question on one of my other responses.
I don't think that tls_device supports 1.3, so what does tls
here mean? That any device that enables this supports _all_
tls versions?
More information about the Linux-nvme
mailing list