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)
commitefca3878a5fbda8d847bd4afb7ccf48b62876d48
treefd0ad5f4369e53e8e1004d1b82cc87dfdbfdd310
parent2c956a5ad4de7376ee792e888809edf2b2b39b86
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: 34aba2c45024 ("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