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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:24:16 +0000 (21:24 +0200)
commit2ee2ef846fa35ccb37baa321f5db1206230df8fb
treef86786ffb96050da94f8c539924ddc028dc0dd1b
parentba27a912f99efe7d803be16c7617439dd15fc6b7
net/mlx5e: kTLS, Fix build time constant test in TX

[ 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>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c