From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51AEBC282C4 for ; Mon, 4 Feb 2019 11:06:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 15AEA2075C for ; Mon, 4 Feb 2019 11:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549278381; bh=5Fs1uLzSwUd7oYAl4D4FiNbI2s1IHAJLC7LgdOA7Jxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ISn0Ya3vcuLMtw4Juh3x5sRUOKAlBqSNhcq9h5hfgtC40IyVHU4zuhH5IxulS1EZO 8PKK0DEGGjvn/0h7lQ8s1RBa9ERYZ6lkhJw313p17zQh4m+7oGdThTcgl4yw2kSIJk sF4k7IPyEyRkEFCyM8kOasJ+jjcAKm3C82Ed/CIQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731249AbfBDLGT (ORCPT ); Mon, 4 Feb 2019 06:06:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:41574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730117AbfBDKnp (ORCPT ); Mon, 4 Feb 2019 05:43:45 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 B66172075B; Mon, 4 Feb 2019 10:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549277025; bh=5Fs1uLzSwUd7oYAl4D4FiNbI2s1IHAJLC7LgdOA7Jxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nRAeI8D2SErk2Ti9KyM+bcqzIjwbLX7+jz1pnQ4yoNLe8VWAAdTP9LPrffshM/HwW diM6+2QNwQljjYH2XolMxrxsrfvoXzc/5WGvwuxX0bsekVo0KUBQhewSEqXyUVF6co 5XDlnWszIdittiV24oAY9jn9r5SSxQY1Vkwahm8U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mathias Thore , "David S. Miller" , David Gounaris Subject: [PATCH 4.9 08/30] ucc_geth: Reset BQL queue when stopping device Date: Mon, 4 Feb 2019 11:36:46 +0100 Message-Id: <20190204103606.807732038@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190204103605.271746870@linuxfoundation.org> References: <20190204103605.271746870@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mathias Thore [ Upstream commit e15aa3b2b1388c399c1a2ce08550d2cc4f7e3e14 ] After a timeout event caused by for example a broadcast storm, when the MAC and PHY are reset, the BQL TX queue needs to be reset as well. Otherwise, the device will exhibit severe performance issues even after the storm has ended. Co-authored-by: David Gounaris Signed-off-by: Mathias Thore Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/freescale/ucc_geth.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c @@ -1888,6 +1888,8 @@ static void ucc_geth_free_tx(struct ucc_ u16 i, j; u8 __iomem *bd; + netdev_reset_queue(ugeth->ndev); + ug_info = ugeth->ug_info; uf_info = &ug_info->uf_info;