]> 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)
commiteea6f53bbb4590961c8465561f83f2eeaf8602fb
tree54bd81d8c1167992f4c657722be4cf41522d1578
parentd61defc67468a06a29b09106cf87fa64448a86af
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