]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: kTLS, Use kernel API to extract private offload context
authorTariq Toukan <tariqt@mellanox.com>
Thu, 28 May 2020 07:04:03 +0000 (10:04 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 27 Jun 2020 21:00:20 +0000 (14:00 -0700)
commitc345293a058c12d7245315830db70145a563d740
tree54bd81d8c1167992f4c657722be4cf41522d1578
parent9c7a3a89f9fce305f94c7ab26f48abfe9212b7b3
net/mlx5e: kTLS, Use kernel API to extract private offload context

Modify the implementation of the private kTLS TX HW offload context
getter and setter, so it uses the kernel API functions, instead of
a local shadow structure.
A single BUILD_BUG_ON check is sufficient, remove the duplicate.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c