]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: kTLS, Destroy key object after destroying the TIS
authorTariq Toukan <tariqt@mellanox.com>
Mon, 27 Apr 2020 13:56:59 +0000 (16:56 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 23 May 2020 00:28:42 +0000 (17:28 -0700)
commitafac367d1db17952820a74bb056cde8c70fdcb4b
tree4810e55a9368657c9b12bcc3938b36554c0708d6
parentd1d8f7a1281424d184c395df3d990caf361f41bd
net/mlx5e: kTLS, Destroy key object after destroying the TIS

The TLS TIS object contains the dek/key ID.
By destroying the key first, the TIS would contain an invalid
non-existing key ID.
Reverse the destroy order, this also acheives the desired assymetry
between the destroy and the create flows.

Fixes: 78c1118ca47b ("net/mlx5e: Add kTLS TX HW offload support")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.c