Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3311627imm; Tue, 17 Jul 2018 02:38:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd0L6Ij8Apnmw4b7a2zxUOTd85tqnBG9oGcpGzD+8w7JH0GJwOKvOcWXA6+WTwUHVce0yhQ X-Received: by 2002:a17:902:201:: with SMTP id 1-v6mr917973plc.310.1531820286049; Tue, 17 Jul 2018 02:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531820286; cv=none; d=google.com; s=arc-20160816; b=fQ9b4b6LJ0fxkgmuo4vq6bW70VMzt5krQP3U9e4ywfpLRiLdDqZ7VjpMVKUWdJtGbg laS1/7IHMZaavFylkKaWjt+pZeR/YaF7ACynFnxbU5RuzPkBBAps48UuO+TnhvyRN55/ PGfo7mI1ViW/qJM29SIu88r4/D6d4xS5BmNzqYdt4QziTERp0kga84K1VhKNRBcQJVEs zj2Fzb/+bNLeBIzRttawe+AUYUZ8e9Jkx7O+WXOA0bpvRcOPKCpM0uQHkUVnxBN2+yTw 1cRY12Ntg1ABiuMr/+9hRPbUob40x/BtzKdcRIT3c8mDRM5yO9hxNF40EP3Ysnmo4poj pvTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=oqxkWcRxBMfo/zP/kCfOB/czMGRIlqWHAllG89WBNzE=; b=ZZQB4NSAWF41RJkIDG/lll86wd81HlVuYuP5HxRpO0xaRzC/w3FS+wXAnRPD+TMD5A 5feGH3EvlP0sZFwSaUZbFSX+7GenXVsa5FkX6DaQwqnV6OnElLiYXm+FwmIXtnxhQ1xZ yBFRK0W/D32LGDnuPfP5HFii2DzRFAsUQtFbr1BS0AEkiDey1UDxgIxnr1TN4sVtS29Z 2i8IY91boRsdYWVvcfp9CONFgHuwjf0NcUImg4wZKR+LKljeqp8oNXBDCLNui36wpgug esQXiTueRU+O7YALo4z8xW/ZVo9etAoQEg0pzs728P2M96mSLE4ZVRVk0xhpKxV59c4M swsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=xpWW6oTs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4-v6si516346pfj.97.2018.07.17.02.37.51; Tue, 17 Jul 2018 02:38:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=xpWW6oTs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730882AbeGQKIx (ORCPT + 99 others); Tue, 17 Jul 2018 06:08:53 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34042 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729640AbeGQKIw (ORCPT ); Tue, 17 Jul 2018 06:08:52 -0400 Received: by mail-lf0-f68.google.com with SMTP id n96-v6so361358lfi.1 for ; Tue, 17 Jul 2018 02:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oqxkWcRxBMfo/zP/kCfOB/czMGRIlqWHAllG89WBNzE=; b=xpWW6oTstwopWDBEXmYynYpQMwcACojTiWKVTEmNCZmXeX1yBBiq1+QCxP7ACDeO07 IWwhZb+3k2UT6//2JExYJuBJk1FPlbvu3r3ncRWbO4t8L52Yvbmydw63Ltb7ONxy4dZz lCb9NxpmlmJ8rR5RnAiXc+rKXRQ7oMMWDP9P/FmR3bd2U1DvvTNDvixueSd+7hQqP3f4 O6VHJOn2FXThN57fOdKv9ZRM2OECkxVaQZhKPmaSTy2Z+9GRGNx8o0g9sx4S2XJEiPuz BzzGbpEAm+yB+E66sgpad1S9UawM0aE2e3KokAe58R9PQjmUWDgF1TBNizdMuFgS6o/8 tH2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oqxkWcRxBMfo/zP/kCfOB/czMGRIlqWHAllG89WBNzE=; b=XjqXWsCxLe0j/V6IwKM7H53meANGu+0Bo32ptUF9enOc3iK050twoME5Kg7IYVNrI7 hmGMIIwqzP7DChMOkI0k6IdV7NcuTCCISsTKdFBdqtmWU8vga84IYuFlOQgiJnU8rwdS JmTBh2hZer1Tv7I9zeFak69OlP5TatB/coqTr83Iw9B06HWiodWMmZ9+9EP267yMYTvZ 3D338fGnkI7PO6KS5qUcAVl4Bf/ocTrBH112vLcJVD/BKc6S0h5m2vaKKNK0NiMsc7qe VDcOJNlPyh/SVRbHmG2uu4nkagB6VippcneAus47p/45PMCw1ip67jcqCKN2beBukNea s1+Q== X-Gm-Message-State: AOUpUlFM/9bO3yYJOA/fu+wGtq8ozos1irLRD2FRpZzcCZ2mH7n8SJ+q 6BwbFzlIB8PF0hPqvT/usFjtkq7Qv3A= X-Received: by 2002:a19:138b:: with SMTP id 11-v6mr790129lft.74.1531820227536; Tue, 17 Jul 2018 02:37:07 -0700 (PDT) Received: from [192.168.0.126] ([31.173.86.160]) by smtp.gmail.com with ESMTPSA id q65-v6sm84841lfb.80.2018.07.17.02.37.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 02:37:06 -0700 (PDT) Subject: Re: [PATCH net-next 7/9] net: hns3: Fix for reset_level default assignment probelm To: Salil Mehta , davem@davemloft.net Cc: yisen.zhuang@huawei.com, lipeng321@huawei.com, mehta.salil@opnsrc.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, Yunsheng Lin References: <20180716153627.476-1-salil.mehta@huawei.com> <20180716153627.476-8-salil.mehta@huawei.com> From: Sergei Shtylyov Message-ID: <5b83ce92-a9bd-df76-4566-f5b2e1cce86e@cogentembedded.com> Date: Tue, 17 Jul 2018 12:37:06 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180716153627.476-8-salil.mehta@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 7/16/2018 6:36 PM, Salil Mehta wrote: > From: Yunsheng Lin > > handle->reset_level is assigned to HNAE3_NONE_RESET when client is > initialized, if a tx timeout happens right after initialization, > then handle->reset_level is not resetted to HNAE3_FUNC_RESET in s/resetted/reset/. > hclge_reset_event, which will cause reset event not properly > handled problem. > > This patch fixes it by setting handle->reset_level properly when > client is initialized. > > Fixes: 6d4c3981a8d8 ("net: hns3: Changes to make enet watchdog timeout func common for PF/VF") > Signed-off-by: Yunsheng Lin > Signed-off-by: Peng Li > Signed-off-by: Salil Mehta [...] MBR, Sergei