]> git.baikalelectronics.ru Git - kernel.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:24:17 +0000 (21:24 +0200)
commit85a41e0ee01f02690a209dc1711d58356180cd57
tree5374818b8367bc197f31bea2175af3c3a8ae35f9
parent767760b42d639f6d412f76087325ac02679318b9
net/mlx5e: kTLS, Fix build time constant test in RX

[ Upstream commit 9b3f6e7429c7f1fe4108f3aab7ce42860f1c0ce5 ]

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

Fixes: c6ad9e0b50d4 ("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