]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net/mlx5e: kTLS, Fix build time constant test in TX
authorTariq Toukan <tariqt@nvidia.com>
Mon, 6 Jun 2022 18:20:29 +0000 (21:20 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Sep 2022 08:52:38 +0000 (10:52 +0200)
commit4d7d9ab9dea1d0725d19ae3845967c626ff11a1d
tree7053c8cf7b41dba69c12ac6d08f7c02eb64a3575
parentea0da0dbb647a730ad24fc635adabe4e76b98f37
net/mlx5e: kTLS, Fix build time constant test in TX

BugLink: https://bugs.launchpad.net/bugs/1988351
[ Upstream commit 6cc2714e85754a621219693ea8aa3077d6fca0cb ]

Use the correct constant (TLS_DRIVER_STATE_SIZE_TX) in the comparison
against the size of the private TX TLS driver context.

Fixes: df8d866770f9 ("net/mlx5e: kTLS, Use kernel API to extract private offload context")
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c