]> git.baikalelectronics.ru Git - kernel.git/commit
ch_ktls: Issue if connection offload fails
authorRohit Maheshwari <rohitm@chelsio.com>
Tue, 29 Sep 2020 17:44:23 +0000 (23:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2020 20:57:03 +0000 (13:57 -0700)
commitf0ac1dcd10b2a6ab2b38843e2f26f9eab16f8cfd
treefd0ad5f4369e53e8e1004d1b82cc87dfdbfdd310
parentd92c490c1643bdb7f4671f65b9133d4cf65e3a6c
ch_ktls: Issue if connection offload fails

Since driver first return success to tls_dev_add, if req to HW is
successful, but later if HW returns failure, that connection traffic
fails permanently and connection status remains unknown to stack.

v1->v2:
- removed conn_up from all places.

v2->v3:
- Corrected timeout handling.

Fixes: d28dd4ea79ce ("cxgb4/chcr : Register to tls add and del callback")
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.h