mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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: d2ead1f360
("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>
This commit is contained in:
parent
321348475d
commit
16736e11f4
@ -69,8 +69,8 @@ static void mlx5e_ktls_del(struct net_device *netdev,
|
||||
struct mlx5e_ktls_offload_context_tx *tx_priv =
|
||||
mlx5e_get_ktls_tx_priv_ctx(tls_ctx);
|
||||
|
||||
mlx5_ktls_destroy_key(priv->mdev, tx_priv->key_id);
|
||||
mlx5e_destroy_tis(priv->mdev, tx_priv->tisn);
|
||||
mlx5_ktls_destroy_key(priv->mdev, tx_priv->key_id);
|
||||
kvfree(tx_priv);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user