]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5e: kTLS, Fix build time constant test in RX
authorTariq Toukan <tariqt@nvidia.com>
Mon, 6 Jun 2022 18:21:10 +0000 (21:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:20:03 +0000 (21:20 +0200)
commit6eb1d0c370afbfb717824ba148e67243c85cfa72
treefa70061dfc5287838e4e3daf399de4b4606ce43c
parentc87d5211be84e682b9d0ae781368446acf4f2639
net/mlx5e: kTLS, Fix build time constant test in RX

[ Upstream commit 2ec6cf9b742a5c18982861322fa5de6510f8f57e ]

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

Fixes: 1182f3659357 ("net/mlx5e: kTLS, Add kTLS RX HW offload support")
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>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c