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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 May 2021 22:44:54 +0000 (15:44 -0700)
commit65e302a9bd57b62872040d57eea1201562a7cbb2
tree4bc4103d5fb5bd15a70dde5b9e3abb5d5ff85862
parente1d027dd97e1e750669cdc0d3b016a4f54e473eb
cxgb4/ch_ktls: Clear resources when pf4 device is removed

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