]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7cc1b24f6853e953fcc5323430a54aeef79a53e
treedb4d41a94635a2319ff00da6a967beb12ec0ddc4
parent99da4140cbad4e9d68e6b753dfad405b935997a0
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: d389a7c785e7 ("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