Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794062633; b=Jqbjo969YWt6XjVSu8w9XUHFhTeYOMhQ6B3dhVoG8xg1kg9s7TI24gwxjWpR/iotFCzs 5MvhYJCai8vVuytMcygyMG7j/eqYzCWtNTTDBJXZvJwRMYqnn364qv2gKGPvihbdk0WxL 0t0RVVLPJo7rrz/QrQwgVPoAYQOWYe6PCIw+dnv68MrrZ9Is7GHIKpXuu15RnpJ7wwNUh E+wPh5wqYntRwo5unwRA59Qbf6DZnKjPcsERsjiwAP8DMkjZUr8ahbLJoBGUlnMThUoot k0PYvBtn9ghrhbKZ+oUAV4JigPHlJLP3/uIExRi/FqCh9V2eksHn60lP3nNjIVgl/Kg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794062633; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=t3idWFYM6TFGr7ND9MRaACNbdNr0r+zOT+WAvJY6IOs=; b=w4s3mz2wJnukDqkFal36/teda3t6aLWPRKLvezB5N8YVoo7CWuqbDMf7pg6bYc1aQIFg TtSuMNsKYYcMr8VmclNNTyGfyWjBn1bMcmnila+laHZH3ofLUVF9ncTXo4baaI410s+YX fG9w0M9X5nhPUr9F7+4xAGiMSfcHTGZimD27gLoKn4AMfmVkARJgVfjRzSJ/1eEmHhk86 LYaJ64GQLNMiauzPIqeTMUSyp17Adl93NiktAKZ84rjA3nB3fi+YJbvxiGm2jpDgNvpcI DCoi0YgnEyvFjcXFb5T97Ker7ay1qeSROg8fjb086FvnVKa6AAtLUw3AdPt3MGYLYKA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="mwy/2wLG"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27820606A66C; Sat, 7 Nov 2026 14:43:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=mwy/2wLG Received: by smtp.kernel.org (Postfix) with ESMTPSA id B52121F0089F; Sat, 7 Nov 2026 14:43:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794062631; bh=t3idWFYM6TFGr7ND9MRaACNbdNr0r+zOT+WAvJY6IOs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mwy/2wLGc8SAUmWDN7WdDftchta188E8wgtMVh2qW+a9wWh0zHBPF6JejKCeOmVv3 r/MRgequCw/mGJtA1o2jBjB1mzHd43GumHfuH3E7yalc8TVmbvjDMoS5OSNFlo8acQ j5JT6wotfnltX0KWxIXzoAqnUhk4pr8+5cLPUhbE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Yang , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.12 1502/1536] net: hisilicon: hisi_femac: Stop the receiver before releasing the RX ring Date: Sat, 7 Nov 2026 08:58:38 -0500 Message-ID: <20261107135040.050085713@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261107134957.653319350@linuxfoundation.org> References: <20261107134957.653319350@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Yang [ Upstream commit d54b21d824302af52d06574870817fbe14774dab ] hisi_femac_net_close() frees the receive ring while the RX address queue still holds every address that was pushed to IQ_ADDR. A port that keeps receiving then DMAs arrived frames into buffers that other slab caches have already taken back; on an EC6108V9C (hi3798mv100) the queue still held all 52 armed addresses right after the interface was closed, and had dropped to 43 after 15 s of broadcast traffic. Reset the port before the buffers are released, so that the receiver no longer holds any of their addresses. Fixes: 542ae60af24f ("net: hisilicon: Add Fast Ethernet MAC driver") Cc: stable@vger.kernel.org Signed-off-by: David Yang Link: https://patch.msgid.link/20261025182022.2959333-1-mmyangfl@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/hisilicon/hisi_femac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/hisilicon/hisi_femac.c b/drivers/net/ethernet/hisilicon/hisi_femac.c index 2406263c9dd3a..deb6ea79ac758 100644 --- a/drivers/net/ethernet/hisilicon/hisi_femac.c +++ b/drivers/net/ethernet/hisilicon/hisi_femac.c @@ -491,6 +491,7 @@ static int hisi_femac_net_close(struct net_device *dev) netif_stop_queue(dev); napi_disable(&priv->napi); + hisi_femac_port_reset(priv); hisi_femac_free_skb_rings(priv); return 0; -- 2.53.0