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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Jun 2021 07:00:47 +0000 (09:00 +0200)
commitb96adbf6601d76ee0bdd9bfa5bcdd0cdd5333d78
treed33adb76c67a41b6d9fc278581e08d9d35f3429e
parentada298f861a306f30ffe1ae0014491865bdfee82
cxgb4/ch_ktls: Clear resources when pf4 device is removed

[ 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>
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