]> git.baikalelectronics.ru Git - kernel.git/commitdiff
chtls: Remove invalid set_tcb call
authorAyush Sawal <ayush.sawal@chelsio.com>
Wed, 6 Jan 2021 04:29:07 +0000 (09:59 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Jan 2021 01:06:02 +0000 (17:06 -0800)
At the time of SYN_RECV, connection information is not
initialized at FW, updating tcb flag over uninitialized
connection causes adapter crash. We don't need to
update the flag during SYN_RECV state, so avoid this.

Fixes: d389a7c785e7 ("crypto : chtls - CPL handler definition")
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c

index 561b5f2273afa6d8d4e142d7ec429cc84f69bf87..431d1e3844ab6a4718bdb50b96e82e8645fc89f3 100644 (file)
@@ -2096,9 +2096,6 @@ static void chtls_abort_req_rss(struct sock *sk, struct sk_buff *skb)
        int queue = csk->txq_idx;
 
        if (is_neg_adv(req->status)) {
-               if (sk->sk_state == TCP_SYN_RECV)
-                       chtls_set_tcb_tflag(sk, 0, 0);
-
                kfree_skb(skb);
                return;
        }