diff options
author | Ayush Sawal <ayush.sawal@chelsio.com> | 2021-05-13 15:11:51 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-13 15:44:54 -0700 |
commit | 65e302a9bd57b62872040d57eea1201562a7cbb2 (patch) | |
tree | 4bc4103d5fb5bd15a70dde5b9e3abb5d5ff85862 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |
parent | e1d027dd97e1e750669cdc0d3b016a4f54e473eb (diff) | |
download | linux-65e302a9bd57b62872040d57eea1201562a7cbb2.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 6264bc66a4fc..421bd9b88028 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -6480,9 +6480,9 @@ static void cxgb4_ktls_dev_del(struct net_device *netdev, adap->uld[CXGB4_ULD_KTLS].tlsdev_ops->tls_dev_del(netdev, tls_ctx, direction); - cxgb4_set_ktls_feature(adap, FW_PARAMS_PARAM_DEV_KTLS_HW_DISABLE); out_unlock: + cxgb4_set_ktls_feature(adap, FW_PARAMS_PARAM_DEV_KTLS_HW_DISABLE); mutex_unlock(&uld_mutex); } |