cxgb4/chtls: Fix tid stuck due to wrong update of qid
authorAyush Sawal <ayush.sawal@chelsio.com>
Tue, 12 Jan 2021 05:36:00 +0000 (11:06 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Jan 2021 03:40:05 +0000 (19:40 -0800)
commit8ad2a970d2010add3963e7219eb50367ab3fa4eb
treedb4d41a94635a2319ff00da6a967beb12ec0ddc4
parent7128c834d30e6b2cf649f14d8fc274941786d0e1
cxgb4/chtls: Fix tid stuck due to wrong update of qid

TID stuck is seen when there is a race in
CPL_PASS_ACCEPT_RPL/CPL_ABORT_REQ and abort is arriving
before the accept reply, which sets the queue number.
In this case HW ends up sending CPL_ABORT_RPL_RSS to an
incorrect ingress queue.

V1->V2:
- Removed the unused variable len in chtls_set_quiesce_ctrl().

V2->V3:
- As kfree_skb() has a check for null skb, so removed this
check before calling kfree_skb() in func chtls_send_reset().

Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition")
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Link: https://lore.kernel.org/r/20210112053600.24590-1-ayush.sawal@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/t4_tcb.h
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c