From: Jason Gunthorpe <jgg@nvidia.com>
To: lirongqing <lirongqing@baidu.com>
Cc: Leon Romanovsky <leon@kernel.org>, linux-rdma@vger.kernel.org
Subject: Re: [PATCH] RDMA/mlx5: Fix state and counter desync on loopback enable failure
Date: Fri, 5 Jun 2026 14:03:25 -0300 [thread overview]
Message-ID: <20260605170325.GA2765215@nvidia.com> (raw)
In-Reply-To: <20260601095818.2227-1-lirongqing@baidu.com>
On Mon, Jun 01, 2026 at 05:58:18AM -0400, lirongqing wrote:
> From: Li RongQing <lirongqing@baidu.com>
>
> In mlx5_ib_enable_lb(), dev->lb.enabled was unconditionally set
> to true even if mlx5_nic_vport_update_local_lb() failed.
>
> Fix this by only setting dev->lb.enabled on success. On failure,
> roll back the reference counters and return the error.
>
> Signed-off-by: Li RongQing <lirongqing@baidu.com>
> ---
> drivers/infiniband/hw/mlx5/main.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
Applied to for-next, thanks
Jason
prev parent reply other threads:[~2026-06-05 17:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-01 9:58 [PATCH] RDMA/mlx5: Fix state and counter desync on loopback enable failure lirongqing
2026-06-05 17:03 ` Jason Gunthorpe [this message]
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=20260605170325.GA2765215@nvidia.com \
--to=jgg@nvidia.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=lirongqing@baidu.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox