From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796125528; b=ZkMQ6UagFzE7yc9TrZPSEb+Kp/wfoNwvOt5J/xFN1Qrp+xfjwpqEGczfQNzTkFeQ9EoK wH8wpjdQRzgD5/Li+qr+/1qhbyG/lPOikFHWM85rtbOLd9XBvheVe+OrVGmWG2cqOSHWr pUTPWY0FUwajqhrgKkPouTrOCyaKaSuYq9IF0FjtxP48bqSJfhzD/54HTJngo2dRTgvBb mCGv5GBEwegaUJMuXS2G9ruFGBVrG7/mqntj79qB4bCSIjmog3uhEuFie7YwpBMpQYNnA qVCOKtafe/BjxJbNmKqsA3Z5oCNTvJbkFeT7220T91SakEa6Kwbe5hwBoeETY4M49YA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796125528; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=mJlQ9jRc/0+CBIfbQvoo95wNvxsMvLXw9/xYOxNaSJ8=; b=uwBxp3+Yenc6lbEz8qTdMvgde/pQnfsb8QuDc1tBBTUmglf7sYFrmHT+OVWlnIOcUkDk 4baHPqsixOG2g/s/J+2dFs0BrTSbpRJSPy2e3CFpRsiszgaDm5h8UXFFB6GKAWNt5fUpq NaXgt9sJHHCymJU2aslwfP5HabqzA1ce0UqIUvjAymjTV3axnKMrS/kdNOUpKPANOiaDf X2FUeBcrHAmh3yStW3rkIbtKp5nSD4QrM7eQKfoHVxCYJBn+7r+edSAyNkaiqQ403/f6x CuMPgqkQ0zhtdbkO03qTdoPLNmcXZG527jvq55BwUcwIzsT0A+Ynmfrjw+m7bT3YX/A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=T5puHMPj; 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 4F4BD606A325 for ; Tue, 1 Dec 2026 11:45:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=T5puHMPj Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3FA11F000C1; Tue, 1 Dec 2026 11:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796125528; bh=mJlQ9jRc/0+CBIfbQvoo95wNvxsMvLXw9/xYOxNaSJ8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=T5puHMPjEClWoVFcQ3YFBowAG3/6cVHpshs5sKMyHVsgkHhf3ZjDd6uIrA8iZAsez t+SlO/geamuQY8+7ayckPCMuLSeAtORXSLnpMSMQxD3nuha7z7JeL6ql6Wwo0uC1Ti /xP0Rm89oA5VswxsyL7lfd96kURhrJhiltemPDBBXfd9I9eMfvpYc22AofUh45FmHM oJYk5U7nTKYyHlsdoC8h27m34pkv/NlnmkiEtM/VCFCiVkC7pmeQ9/dB4e1Gcs8Jds m7ERdrfwLVj6C+H/Nlqchvj//OenSPho0oOwzh9FKE3RE+k26Qkt4uSHdfggKI7kpt 9Yp/OIUi4F0+Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net] net/mlx5e: Report a down device as -ENETDOWN to queue restarts Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261201113925.1245805-1-bjorn@kernel.org> References: <20261201113925.1245805-1-bjorn@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 11:45:26 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > Unbinding a memory provider from a queue of an mlx5 device that is > down triggers the WARN_ON() in __netif_mp_close_rxq(). The core asks > the driver for queue memory before it checks netif_running(), and > takes only -ENETDOWN as nothing to restart, see commit 34f71de3f548 > ("net: avoid false positive warnings in __net_mp_close_rxq()"). > mlx5e_queue_mem_alloc() refuses a device that is not open with > -ENODEV: >=20 > WARNING: net/core/netdev_rx_queue.c:303 at __netif_mp_close_rxq+0x18f/0= x1b0 > Call Trace: > net_devmem_unbind_dmabuf+0x150/0x260 > netdev_nl_sock_priv_destroy+0x11d/0x160 > genl_release+0x107/0x130 > netlink_release+0x8a6/0x13f0 > sock_close+0x9c/0x1d0 >=20 > io_uring zcrx unbind takes the same path. >=20 > Return -ENETDOWN for a device that is not open. The core has already > cleared the provider of the queue when it asks, and the device opens > without it, so nothing else changes. >=20 > Found by code review while adding a memory provider to mlx5. > Reproduced on a ConnectX-7 (firmware 28.48.1000): bind a devmem dmabuf > to a queue with ncdevmem, take the link down, then kill ncdevmem. With > this patch the same steps are silent, and the device comes back up > and receives. >=20 > Fixes: b2588ea40ec9 ("net/mlx5e: Implement queue mgmt ops and single chan= nel swap") > Signed-off-by: Bj=C3=B6rn T=C3=B6pel Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201113925.1245= 805-1-bjorn@kernel.org?part=3D1