Article View: linux.kernel.netdev
Article #25353Re: [PATCH net] net/mlx5e: Report a down device as -ENETDOWN to queue restarts
From: Björn Töpel
Date: Tue, 01 Dec 2026 15:40
Date: Tue, 01 Dec 2026 15:40
21 lines
8355 bytes
8355 bytes
Dragos Tatulea <dtatulea@nvidia.com> writes: > On 01.12.26 12:39, Björn Töpel wrote: >> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c >> index 227695dfa51d..43ca52c55297 100644 >> --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c >> +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c >> @@ -5735,8 +5735,11 @@ static int mlx5e_queue_mem_alloc(struct net_device *dev, >> int err; >> >> mutex_lock(&priv->state_lock); >> + /* Core takes -ENETDOWN as nothing to restart, as when a memory >> + * provider goes while the device is down >> + */ > I'd drop this comment. Other than that: > Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Thanks, I'll spin a v2 w/o this.
Technical Details
Message-ID:
<87ld69ovpk.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375196-linux-kernel-netdev=dewy.ruReferences:
<20261201113925.1245805-1-bjorn@kernel.org> <832b3e4b-1184-4b06-a8cb-69b30fe2756f@nvidia.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375196-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net/mlx5e: Report a down device as -ENETDOWN to queue restarts Date: Tue, 01 Dec 2026 16:40:39 +0100 Organization: Usenet Network Message-ID: <87ld69ovpk.fsf@all.your.base.are.belong.to.us> References: <20261201113925.1245805-1-bjorn@kernel.org> <832b3e4b-1184-4b06-a8cb-69b30fe2756f@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="1751126"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:S/E5a9d1FzVeqjLf/kPSRZUHAgQ= sha256:oS/vhQ4PH8GacqhqE8hXYUG13CnK6J/FLN2dHKfJSLQ= sha1:HNeXDYwyAGJDmFVJWJBk2cMSo/8= sha256:0LGqrGc3Q4myPuQ4SAs+YvYQFSqf5NbxP6h3K4l4xiw= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 5C3171173DB; Tue, 1 Dec 2026 18:41:03 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U6jKkVeyySYw; Tue, 1 Dec 2026 18:40:56 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-375196-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 169751173E0; Tue, 1 Dec 2026 18:40:46 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id B9961602526; Tue, 1 Dec 2026 15:40:45 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796139644; b=FFnoZaAI60WMKQm9bao0Ard3aomy138UgkuCLtRyENKkx00KMSqcUi1kc3V8lS8kujHA Egv+/R2XEihClxpV7+stssvCIpMPdhV319bxawvUv1YdCswHqfqZTF/I8dV4DntNv1hHj zIKSYYw8FU/j63zDERqUPPDdOdZ5sYS6QjBjyDjDPAjFMTh0ZKva29KsdJ6LJLpurT1wm 1ttK1Fg2HfhYOIdAT/IIvTrUKXPyThcVTfqWUfVXlTCkuoIEWS82L/z0ADvvzwsDCk70M 2c1EOnDqHWZ38jDNta8Xbwxk04/0f0V27GDy2azJLa8d7YsHYj1IdNhzyIzjEvgIL+g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796139644; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=K8uJY2U2K8HBgnxxOH9/36/deS4mkiTSzimpWhDCOsI=; b=0e17NdRTPd0edqbvRQYOzebpF8BRAq0R2dQdnjHVK1nhjpqbco/SZYGGn8OE0/28LOVF Eb2WjkU1RZ+9lfCLsUajaNFibOvdP177O3iiaidKlEWV8cwffKoyOnEHuGw/NYQVCMvqW mkM+m7sGEjBFf+woIYwxd4GFFPX186u/TpZIM5e/pprxSlgwbVjSqbKH3H9g9CCVsGqm1 GEwEZgyY+kg5DQ+Jz+WB2+FGK6LF8WuBedOkEkAiohs0dpOjLqIMAjHzT25XmGqbDnxbb foPmxsGwf0ZK+XqrAilcEJUXT3x+PSQEopabSuof155fvv2nnVFMJphrphLzf2TNLEg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=h1BsbJtq; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 289BA606A32F; Tue, 1 Dec 2026 15:40:44 +0000 (UTC) X-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=h1BsbJtq X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796139643; b=g2JqmR0R3yAHOew44wl8KB8HpCUANjkTqVlf4SawZ6onCzPayZsHuQDjXnTserjKVJLM jVEi6PLspiWZ1A+tjOYhV46K1sKhSsfDDyYpBsMPKw9JGqH/lCz/c560gJrESyAZlloSU oytbuBO9vuGPtIpWzqf4jBGijSpcBLKZArR40QYCUwFU2UKCYwI9N89R3UlJ0ev1fmk/5 0A4+T+8Jhgsxr3QY60TkL9TNRyU+Dfyjm2fPxo6KVVFioYAr1Wi5JWtH9NlyqyiYxD2Gh PlL0gTlGNoNEtGxsLK6KUU8wwqKY7sVhmCNKr6vAtrXkEupbSBmPzYay/zhQvHX6JCA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796139643; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=K8uJY2U2K8HBgnxxOH9/36/deS4mkiTSzimpWhDCOsI=; b=q6R18mPIJWM12dWjwi7zp5fr4c7trKUaidXSNvFCXjbJfqdUoBp/xUkYmK67PnVE1f4q 47kCIKQB+fwOa3kwhPFq4tGG9zRAWYiAEDSYuFBYa/ysvBrRSxpvBaPYcn00qvdrHfcxX SvFtywftlpr386muWK6JOvgJHflEdZ7CDKOU/4brsY1LfxMpCI6pjYfHSsE7+WDGIDK5u 1Rf/tmlI3K1NqMurCSZEG7EGhUpgXh8KzDhZG6AwbfvuC6jNacVPvIMW5edIRMGLZeOcr Kj8KTuj6zHoVxefZtIVSfT28zkx5y0h8qCP4YozlaEbT3KqB+3x8OUrZ7b2Ou1hGBdg== X-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=h1BsbJtq; arc=none smtp.remote-ip=100.103.45.18 X-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 45169606A31A; Tue, 1 Dec 2026 15:40:43 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E30B1F000C1; Tue, 1 Dec 2026 15:40:42 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796139642; bh=K8uJY2U2K8HBgnxxOH9/36/deS4mkiTSzimpWhDCOsI=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=h1BsbJtqkUacT7ZLsIGmBpFsX33IQ8lkChgJ+0Tuuq7N1OnO7V8hnIRB32xs8ERDu W/NOPbTNVixR6gNSUEso8H39XfBzREtsYrL9JUyYtacZ0t/2DpW1WXa4h8ji3iZEuC A8xrB10WfBn6m3OB/ObwEIqjhAthZkMlfGohAc89hTCiJXOfL6r2vD1+5egPV4e1Jo 65jY/gEE+efGazw6CNY9gkoJQCklu8d3SlngwECiVf/w8JxR+SDuLu0VXesygV3pNE IwcSm06tU8tIqwwcqr++GsRxlsMmNuFbSCODRoWXNvGlZBlfaw3u3mfRO7Uc2bHhTt YufablnrXcTSg== X-Cc: Stanislav Fomichev <sdf@fomichev.me>, Mina Almasry <almasrymina@google.com>, linux-rdma@vger.kernel.org X-In-Reply-To: <832b3e4b-1184-4b06-a8cb-69b30fe2756f@nvidia.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list