From nobody Mon Jul 20 20:53:40 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h3t5x663pz6dPt3 for ; Mon, 20 Jul 2026 20:53:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h3t5x0n0kz47HX for ; Mon, 20 Jul 2026 20:53:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784580821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Hcra3f468xjMqzaR3NoXyklDuQs5Xw1oHyuUhYCcOqU=; b=P9C9dPw5OGo1WuFQAQTl3PuDWZAQvO3tqtpYjTHZSXWLYzyC42uwkQ9VoKVnteBD64FGtl cSUDcC2QiecM5lD9voi1DZXyPm1aid++dOSYwUJBax784wujjrj/3sCk+MgClAn43dSW1W vmALIscJDf+myBGzJSxnRuc4VTwz/w7b99ECHqJSzcD11UP8/M6am+LHE/AESupAS1XZWR bIZFAxAyq21LSmFcmoxCuubiwuy1bH4fyPh6e/drEMZaVCAolXrwYg7RAg4o2dJKELAxGy j1LqLCGzHcPhA2L46wgW9NZR/ZfWWVk5N7mhdltNtwLMffK8SkYl62YZxnEQyA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784580821; a=rsa-sha256; cv=none; b=QAVy+D/D3vYUeVIdl1vUm0kWxvKBXtuMCw7gXaURy4Cn9+x9ZGt9FXKh08GKElGp9/DxX7 gp8Va90FLu29gegVtCqA0jY1G2fQcfmiM+k6F9Yex7FwmNa1TwO7gT5977wJoRs1XplvCc aUp/3cNrLIrk76X7iUz+JZd8FZVBQfx5IxpVKRngPhsUDKiMibVxkauW4gvX9O1+98GItt XxSPlmxtXyYYpsuBExnSJggVhQWIB0F0XeYN46vULLH9speG1QLdm0HwTsORPusS7gayYj sYCA+gCRfz4WjbagSyHTWxFTXWW3gYGoi8RhYcoghxswe3ADCl0X08aAbqnGlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784580821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Hcra3f468xjMqzaR3NoXyklDuQs5Xw1oHyuUhYCcOqU=; b=dAGKztBvsiAAqH/BICa/UmCZagd8Wr4APlOekza2dOjqi/Nfhxw0foasW7wmxFMByey+FR lB9Sf6CKYDzC8ArCONZjO0ytt2Or/klGV9VQmLBhtRzFECXmaig7dX7/LrY3DmIi6H7Gm1 WXLcv6cfQU+ekSHz1MW96kLeXK0G6K+NPE0QUjQVnYd3ksRWOVQJ4VnLbNXlhzH70hv9/m 8XsATTJc7csi3AWGGtaLGJhezQyIZHwTrT15BUfSpU/cZQYNb+CwtxzNRbhMhY7+c9oO/Y Nq3NDdHi+LwANCAFmYk/lkk5XOoyUSEUzeZPlH0w+Snec3HXhn0lo0nVODmMTQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h3t5w6dHlz39h for ; Mon, 20 Jul 2026 20:53:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1d8bd by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 20 Jul 2026 20:53:40 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Ariel Ehrenberg From: Konstantin Belousov Subject: git: fab43c031ccd - stable/15 - mlx5ib: initialize DEVX subscription state before the eventfd fdget() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: fab43c031ccd4a630a38ef558ac77d40e4bc142d Auto-Submitted: auto-generated Date: Mon, 20 Jul 2026 20:53:40 +0000 Message-Id: <6a5e8ad4.1d8bd.331fffbd@gitrepo.freebsd.org> The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=fab43c031ccd4a630a38ef558ac77d40e4bc142d commit fab43c031ccd4a630a38ef558ac77d40e4bc142d Author: Ariel Ehrenberg AuthorDate: 2026-06-15 08:16:30 +0000 Commit: Konstantin Belousov CommitDate: 2026-07-20 20:26:10 +0000 mlx5ib: initialize DEVX subscription state before the eventfd fdget() (cherry picked from commit 9c7629d69cebafba3eea6787d3bfc100d60c3b19) --- sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c b/sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c index 6522a0aa6daf..12ce45d8c1e7 100644 --- a/sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c +++ b/sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c @@ -2006,6 +2006,12 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_DEVX_SUBSCRIBE_EVENT)( if (!event_sub) goto err; + event_sub->cookie = cookie; + event_sub->ev_file = ev_file; + event_sub->xa_key_level1 = key_level1; + event_sub->xa_key_level2 = obj_id; + INIT_LIST_HEAD(&event_sub->obj_list); + list_add_tail(&event_sub->event_list, &sub_list); uverbs_uobject_get(&ev_file->uobj); if (use_eventfd) { @@ -2017,13 +2023,6 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_DEVX_SUBSCRIBE_EVENT)( goto err; } } - - event_sub->cookie = cookie; - event_sub->ev_file = ev_file; - /* May be needed upon cleanup the devx object/subscription */ - event_sub->xa_key_level1 = key_level1; - event_sub->xa_key_level2 = obj_id; - INIT_LIST_HEAD(&event_sub->obj_list); } /* Once all the allocations and the XA data insertions were done we