From nobody Wed Sep 16 14:13:02 2026 X-Original-To: dev-commits-src-main@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 4hlLSt6PGTz6rXC1 for ; Wed, 16 Sep 2026 14:13:02 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hlLSt3Vz7z3MHH for ; Wed, 16 Sep 2026 14:13:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789567982; 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=WeMEGugfT0DgealTx+GH6StxwrmzZVeN4TBHxo6657Y=; b=wV0AQOrIMbKRLy7otLQGiE4WLWDVdVl7PVdbolhiUKyET09T7gzjsw0GaymXGyGYzWSLzQ fOUuPL3EP1Vrqb5xBCIUaAZK+pga0TzUbgHIBA+yvXIwQm4KKGtOTY6nZHWYRg4zQ7YkeY 2YKwdtx45ABIQ0OY9rolTbogLGagYmCGgtz5GU4mRI/qRohR6ulYrohmBscodoyjxH2UNk EnlK80oOFKbeU8svB9RjUueTJK2KysPQboWVz0XTFdsaHn+iwALLHFutsci/7Hcu0K7UvW l1NQmy78RALrhwO5WNJuYVVvUmPjiQpkm0DbudSGSNx2y22NSbO6I0HLnEw0Kw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789567982; b=V6V/aX9rL4VgGang19k0VEXsiqi/h9Cfam24/TQ/EdFJfZ4GYXwSiukuWwWtUHHssQx5We 6SvqLUPWua9SZAXrV/qG67FM0Pb1Mrj2trJFj9Ntbl8//ZhxJMKRqdvQUkMcRDmGir9svU tJptEu0E1W+poI2p5qiwZVnvic4u/haQqeUasZYpsvuc/Dnaz5E+Ha4ZhMIGtl2YiqKhnZ 7wVl3SDvNNsEOtdi/Sc65xnIbju3KqJifG7qT3E63WoPxJJxRkXPFisKJ945JyZQfodVre aqD1xn5wTDQFgFwA454KOnamOiGyvuIqoXRC8n2RMry/981tDEmzy0UraM2TtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789567982; 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=WeMEGugfT0DgealTx+GH6StxwrmzZVeN4TBHxo6657Y=; b=jyviyZHzlyyz6wYHYtaJEsqZG8Y35YZPyUXUB4hclqhhRv42wLmi12jQ6tfmF3DL9VuLQa T8FMeZgdFmcnghD44sl4AdAyIDV/oikkG/x9/UVdwMUOGqWtz4fP6X0WhPsS3LZZXFvX1e fqDTg0EDotvEkS5Iqu6S7lM8gonyOEkl95svDre3lHcFWfCcl+XU82VD+m9liBPGEp/1pL 4oa8fIWGTA5Dry2ykwH7QXYAJZwxph/f7w8zqAioKsvLrEXZT+yamc8H+pBZkozTQhPWlO ai/1Rm2kiGf3Zn0vRScZGrzQydH3FzZhObmWLNSSZRss5Ufg0NbqKIAPMQ1fAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hlLSt2YS9zr4q for ; Wed, 16 Sep 2026 14:13:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3752a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 16 Sep 2026 14:13:02 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Ariel Ehrenberg From: Konstantin Belousov Subject: git: 4aed4f191c49 - main - fixup! verbs/mlx5: Annotate ibv_wc and ibv_send_wr with endian List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 4aed4f191c4953d4704973432fea93514a37fa45 Auto-Submitted: auto-generated Date: Wed, 16 Sep 2026 14:13:02 +0000 Message-Id: <6aaaa3ee.3752a.446512b4@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4aed4f191c4953d4704973432fea93514a37fa45 commit 4aed4f191c4953d4704973432fea93514a37fa45 Author: Ariel Ehrenberg AuthorDate: 2026-07-28 12:02:45 +0000 Commit: Konstantin Belousov CommitDate: 2026-09-16 14:12:08 +0000 fixup! verbs/mlx5: Annotate ibv_wc and ibv_send_wr with endian Fix is based on upstream rdma-core commit 14a0fc824f16 ("rdma-core/irdma: Implement device supported verb APIs"). Use ib_wr->invalidate_rkey instead of ib_wr->imm_data for IBV_WR_SEND_WITH_INV and IBV_WR_LOCAL_INV. The two share a union, but imm_data is __be32 while the rkey to invalidate is host order, so with the new endian annotations this path reads the wrong member. Upstream irdma has always used invalidate_rkey here. Sponsored by: NVidia networking MFC after: 1 month --- contrib/ofed/libirdma/irdma_uverbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ofed/libirdma/irdma_uverbs.c b/contrib/ofed/libirdma/irdma_uverbs.c index aee904a087bf..34a02020a91d 100644 --- a/contrib/ofed/libirdma/irdma_uverbs.c +++ b/contrib/ofed/libirdma/irdma_uverbs.c @@ -1725,7 +1725,7 @@ irdma_upost_send(struct ibv_qp *ib_qp, struct ibv_send_wr *ib_wr, info.op_type = IRDMA_OP_TYPE_SEND_SOL_INV; else info.op_type = IRDMA_OP_TYPE_SEND_INV; - info.stag_to_inv = ib_wr->imm_data; + info.stag_to_inv = ib_wr->invalidate_rkey; } info.op.send.num_sges = ib_wr->num_sge; info.op.send.sg_list = (struct ibv_sge *)ib_wr->sg_list; @@ -1821,7 +1821,7 @@ irdma_upost_send(struct ibv_qp *ib_qp, struct ibv_send_wr *ib_wr, break; case IBV_WR_LOCAL_INV: info.op_type = IRDMA_OP_TYPE_INV_STAG; - info.op.inv_local_stag.target_stag = ib_wr->imm_data; + info.op.inv_local_stag.target_stag = ib_wr->invalidate_rkey; err = irdma_uk_stag_local_invalidate(&iwuqp->qp, &info, true); break; default: