All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Björn Töpel" <bjorn@kernel.org>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH net] net/mlx5e: Report a down device as -ENETDOWN to queue restarts
Date: Tue, 01 Dec 2026 11:45:26 +0000	[thread overview]
Message-ID: <sashiko-outbox-243214@kernel.org> (raw)
In-Reply-To: <20261201113925.1245805-1-bjorn@kernel.org>

> 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:
> 
>   WARNING: net/core/netdev_rx_queue.c:303 at __netif_mp_close_rxq+0x18f/0x1b0
>   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
> 
> io_uring zcrx unbind takes the same path.
> 
> 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.
> 
> 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.
> 
> Fixes: b2588ea40ec9 ("net/mlx5e: Implement queue mgmt ops and single channel swap")
> Signed-off-by: Björn Töpel <bjorn@kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201113925.1245805-1-bjorn@kernel.org?part=1

  reply	other threads:[~2026-12-01 11:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 11:39 [PATCH net] net/mlx5e: Report a down device as -ENETDOWN to queue restarts Björn Töpel
2026-12-01 11:45 ` sashiko-bot [this message]
2026-12-01 13:43 ` Dragos Tatulea
2026-12-01 15:40   ` Björn Töpel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-243214@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=bjorn@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.