]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
cxgb4/ch_ktls: Clear resources when pf4 device is removed
authorAyush Sawal <ayush.sawal@chelsio.com>
Thu, 13 May 2021 09:41:51 +0000 (15:11 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 30 Jun 2021 06:27:33 +0000 (08:27 +0200)
commit76c85c1748ab73bcd44ba95a52a5acebffe3a432
tree36daa048da72100025d880584d0ccbce77eacce7
parent10b6273955fd20c2020529de3591676e2ba11ad2
cxgb4/ch_ktls: Clear resources when pf4 device is removed

BugLink: https://bugs.launchpad.net/bugs/1931896
[ Upstream commit 65e302a9bd57b62872040d57eea1201562a7cbb2 ]

This patch maintain the list of active tids and clear all the active
connection resources when DETACH notification comes.

Fixes: a8c16e8ed624f ("crypto/chcr: move nic TLS functionality to drivers/net")
Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.h