Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2199113imm; Mon, 28 May 2018 03:47:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZos+kUIsvOmUGKVNJXSFSp1u2N6BtT8iP3qRFCgVQSYhyQb+PyJL6sCreHu5xZ8wZsXPfxz X-Received: by 2002:a17:902:ab98:: with SMTP id f24-v6mr12913115plr.144.1527504437973; Mon, 28 May 2018 03:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527504437; cv=none; d=google.com; s=arc-20160816; b=nqbRCgdEVw74HSSylS9sRquzfoRzcwNX16p0qYJTR4021EGi2w9UkfICFa97MvH4QC 15iiN1oxgsDiOt9t3/OUFPcELGRKVSJc8sdICdE7oEzbw+WMYKWy8J4sd+DUJpRyEii4 bMTgdNv56RwdyqLKoOjm1KLaSiu8jT1b2jahp/1QNzCyuH8pHPvJ2+2aS35kZSjmnoVS +iRIzllEmMnDuxEFFqFpsuSGmks37Qx5ErFtvaEpFsLyPBDNhhs3vJdLyp/8yyhRnMVf 9V+0svNa7ZA3clwTHNBkV8JhA9mKZfKKpbCuo4MIVIGuRuN11BbP56L8s7jQZYmeU0ww B38A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=2LZToFTHBUmSlXCZKQx/Y7QQD9gc8p7IL1y78Q0RRt0=; b=Hczj/QQ5gthRJ0Yr8h4fu+Ojdc4JBciB8m3cTDnIVEol+9eqgELCx3Q6llUaSihju/ fpcxqNhxP74+VKmd3u+uk4te1HjDIEWek4MZ+3ICEPQB1WvSBJb8bnMwJlDfYyMfiF6B 4/HEyR878pCwlPTOPC3qz2kiHSzMbqFtEbZJpdip9Tz4bvcRmn4z6LL3c/6CpNXexARi gI4E9KLp5XmBH+WubEcYzMcnCFNYNl4Ei3Buz8r9lFyUdgMDuhKMnjZJkG94J+NCGqNh C3Zb2PdoCQklMSy7frwfJFdowy0/4mjx5AiUR3kPKk/tr/dfCzcQB/XPBhQ81o808iN7 49OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XRWQdXlW; 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 o73-v6si30014985pfg.327.2018.05.28.03.47.03; Mon, 28 May 2018 03:47:17 -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=@kernel.org header.s=default header.b=XRWQdXlW; 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 S1162471AbeE1Kpu (ORCPT + 99 others); Mon, 28 May 2018 06:45:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:36186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937438AbeE1Kpo (ORCPT ); Mon, 28 May 2018 06:45:44 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F2D9520660; Mon, 28 May 2018 10:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527504344; bh=pnoe9LvRmrrwHq3oQAJqbOTGh+ByWtCcBr+q6JOWzGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XRWQdXlWYTzpeytOp64jgvM/9X2Mh4UAbi88rBnFEWlW8BvnbfJcRE46z3tvqGuPs xnx8lNBEnZzIHCGfL6JNIw3/F8TJNzeEesh2vPtMkXuO6r0DnGiMlBi0T2+3jSHHjs /nHFcPI2FT8tzECnSDqll43Y47ZMZqSEhPdHJksg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Falcon , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 072/496] ibmvnic: Wait until reset is complete to set carrier on Date: Mon, 28 May 2018 11:57:37 +0200 Message-Id: <20180528100322.817536135@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Falcon [ Upstream commit cc85c02edfe48a34865ae00f7d22298a3fdd17aa ] Pushes back setting the carrier on until the end of the reset code. This resolves a bug where a watchdog timer was detecting that a TX queue had stalled before the adapter reset was complete. Signed-off-by: Thomas Falcon Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ibm/ibmvnic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1460,8 +1460,6 @@ static int do_reset(struct ibmvnic_adapt return 0; } - netif_carrier_on(netdev); - /* kick napi */ for (i = 0; i < adapter->req_rx_queues; i++) napi_schedule(&adapter->napi[i]); @@ -1469,6 +1467,8 @@ static int do_reset(struct ibmvnic_adapt if (adapter->reset_reason != VNIC_RESET_FAILOVER) netdev_notify_peers(netdev); + netif_carrier_on(netdev); + return 0; }