]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4/chcr: Enable ktls settings at run time
authorRohit Maheshwari <rohitm@chelsio.com>
Mon, 1 Jun 2020 07:38:29 +0000 (13:08 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 22:48:18 +0000 (15:48 -0700)
commita0196d9c3187c06f9b002be5b947036db43e4185
treebaa00f79aaea0f8702bbc62eeb59f71118f98e6c
parent62ac9bff9fa778ec80fd26142a18b25738fb2b10
cxgb4/chcr: Enable ktls settings at run time

Current design enables ktls setting from start, which is not
efficient. Now the feature will be enabled when user demands
TLS offload on any interface.

v1->v2:
- taking ULD module refcount till any single connection exists.
- taking rtnl_lock() before clearing tls_devops.

v2->v3:
- cxgb4 is now registering to tlsdev_ops.
- module refcount inc/dec in chcr.
- refcount is only for connections.
- removed new code from cxgb_set_feature().

v3->v4:
- fixed warning message.

Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chcr_core.c
drivers/crypto/chelsio/chcr_core.h
drivers/crypto/chelsio/chcr_ktls.c
drivers/crypto/chelsio/chcr_ktls.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h