]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 May 2021 22:44:54 +0000 (15:44 -0700)
commit363486c95b533949c118327a04a3c60a720032e5
tree4bc4103d5fb5bd15a70dde5b9e3abb5d5ff85862
parentb3667ddf6e5abb1c27089f85b5611f4c3bc80cc2
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: 925fdcde70fb6 ("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