]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitdf8d866770f9877dedc864af4346c73694931cab
tree54bd81d8c1167992f4c657722be4cf41522d1578
parent7d0d0d86ec6c67d3eb4f49d3bbccc2d8c02799cc
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