From nobody Tue Aug 22 23:10:27 2023 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 4RVlSM3m9Lz4qb20; Tue, 22 Aug 2023 23:10:27 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RVlSM2nTGz4W9x; Tue, 22 Aug 2023 23:10:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692745827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WPY/cPeEMFlMhNQ9XoGw8yZHT04aUfQ07wMXz94Jz8w=; b=mZxkIDDveofuFTKKcktHE3RIeRBGjpVYAqzcs9H2PlzTc0EK1nGBY0ZHQM2JbRWPYpaimz BFvitLlDSelH2dNT8/BztY3bQENc3d0TfESTCqK70XctblJyDapuKSZVDI41AmfzCDDJXl DXd/Lp6NDwOPKJ3WSqw7x5Ni+RWqpHiPFOOeB+vB8zFDFASkI8FBvuDVQDcV5jCtYJrmNj 2Mm579FKsC1N3RZKOS+cDh4DfwFtBziPAjG0GGYh9ek7v905J02zJWq/eFNQG0QwBe+ynl gUIwPh/ZphsscNeokA6V28NpOAhYHsXRwxArJU+kKEsCpn8hkgI3ijYZYGV6Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692745827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WPY/cPeEMFlMhNQ9XoGw8yZHT04aUfQ07wMXz94Jz8w=; b=pdx2X60sjqWILwEKCrZaP32acoTTluEYS2XcezryVnSB1aM9j6vDPplfFzXJAafC/l2aRJ dPXaGDeDwayqWbvSbx4MpSTfeNGdr1Z4PSv8q9BX+boyVkVwZ3wk5ofzuYd8D0ux+gKVhZ 1Jii3KqBhlzEtyWJ/jkmiBhoNUQ03nFTH+PbCV54F3IqfsKrwVo2wDpWW4tr5HbUn6UH+X f7niYQa97MSIA2XUmA4Jw3RYH968LBA1hmJl71ibCa48/0vxdTXYHL0f9LTF52hnAU81mH V3SJdl59b32fuZAJiGrB3yHPw+aSu+5ZvJ+kffjnadG3P4BUxJHSpBp5lbkzzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692745827; a=rsa-sha256; cv=none; b=Xn8EzO5T2E5OWCBMZCYufxudSK+ozOstgaweydQpPFCxQChGSs1h7HICLTsRbAxwsewR68 09hsFMgIUeCYDJMOEBvsP59CoxUMqUxtRi7kTzlJwQajFhgQ4shisY/d+eYIilQl8YkrfE 1quyONu1qfSRwX1oMiqLow1ocJsZ8INz5GQN5E04y6s1f4L0utzKUdHovMIWmM6Xup/G9z ElCUPH0ICd5yPEgOSdngr88ly4FYr8Brt8gHbXk7oQZL2WBUQa9eXg3e2meb47q8x9izKN 9d3+qoOCAnKglytfUFJJrLPmha1fOQGjVgxM+Nnsnat82shiXf1a9yCDV1WdOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RVlSM1c5Mz72V; Tue, 22 Aug 2023 23:10:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37MNAR65092112; Tue, 22 Aug 2023 23:10:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37MNARIL092109; Tue, 22 Aug 2023 23:10:27 GMT (envelope-from git) Date: Tue, 22 Aug 2023 23:10:27 GMT Message-Id: <202308222310.37MNARIL092109@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Eric Joyner Subject: git: c7f73a1588dc - main - ofed: mask seq_num identifier to occupy only 3 bytes 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: erj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7f73a1588dc58db28100fcbc1d72a830b674b34 Auto-Submitted: auto-generated The branch main has been updated by erj: URL: https://cgit.FreeBSD.org/src/commit/?id=c7f73a1588dc58db28100fcbc1d72a830b674b34 commit c7f73a1588dc58db28100fcbc1d72a830b674b34 Author: Bartosz Sobczak AuthorDate: 2023-08-22 23:07:11 +0000 Commit: Eric Joyner CommitDate: 2023-08-22 23:09:13 +0000 ofed: mask seq_num identifier to occupy only 3 bytes The seq_num among other things is used to assign rq_psn value, which is a 24-bit identifier. When the seq_num is full 4-byte value, we are usually receiving: '_ib_modify_qp rq_psn overflow, masking to 24 bits' warning. This is burdensome for running rdma traffic with large number of connections, because the number of logs is growing fast. Signed-off-by: Bartosz Sobczak Signed-off-by: Eric Joyner Reviewed by: kib@, erj@ MFC after: 3 days Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D41531 --- sys/ofed/drivers/infiniband/core/ib_cma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/ofed/drivers/infiniband/core/ib_cma.c b/sys/ofed/drivers/infiniband/core/ib_cma.c index fe6e3282dbf9..44783cbf8362 100644 --- a/sys/ofed/drivers/infiniband/core/ib_cma.c +++ b/sys/ofed/drivers/infiniband/core/ib_cma.c @@ -787,6 +787,7 @@ struct rdma_cm_id *rdma_create_id(struct vnet *net, INIT_LIST_HEAD(&id_priv->listen_list); INIT_LIST_HEAD(&id_priv->mc_list); get_random_bytes(&id_priv->seq_num, sizeof id_priv->seq_num); + id_priv->seq_num &= 0x00ffffff; id_priv->id.route.addr.dev_addr.net = net; return &id_priv->id;