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)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 6 Jul 2022 23:11:54 +0000 (16:11 -0700)
commit6cc2714e85754a621219693ea8aa3077d6fca0cb
tree76663f7a7788d8cb2214c0e5f1e5bc3a9e0f545e
parent4892bd9830c363420f00d90186630e7acbed5c9e
net/mlx5e: kTLS, Fix build time constant test in TX

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