From patchwork Mon Sep 16 16:58:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaliy Shevtsov X-Patchwork-Id: 13805666 Received: from ksmg01.maxima.ru (ksmg01.maxima.ru [81.200.124.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D14EE80C0A; Mon, 16 Sep 2024 17:04:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=81.200.124.38 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726506264; cv=none; b=OS0p6Mwdtci5C+hQUGpQkqbzOsKHYA5V+I3SZp3ztxTSR4G75odLGLVD96JGhkft2MuDZZ93SuKFdFN95CYSTBeHmBMnupmZShp4IR0AJFIg/BBRpV07iam8FT5IQvxuBWTKM6WPJjsL/Zq0uVeazWzSWDgnPl2qcbS64rdethE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726506264; c=relaxed/simple; bh=Rh0YZTPe0Fxpg2O+DQbTTdbOqUtyQT7J30Gu/BLqNxE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=P5b1C3oeXggfJ0whS5sCtNFj+1LNikYqFWy32bZkMEouZWas/MuD/0O503BAY6cRirtF1EHynlVEJCsrPdaNZfBXp8oVUFAE9rkQwkl32g4CDu2hvv+ij2VgQ8nhDQe0SyUQ2cmmzpG0q5mmbsZpVWk17RDn7h17WLUptLnv+Ro= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maxima.ru; spf=pass smtp.mailfrom=maxima.ru; dkim=pass (2048-bit key) header.d=maxima.ru header.i=@maxima.ru header.b=iXJJbw/7; arc=none smtp.client-ip=81.200.124.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maxima.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=maxima.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=maxima.ru header.i=@maxima.ru header.b="iXJJbw/7" Received: from ksmg01.maxima.ru (localhost [127.0.0.1]) by ksmg01.maxima.ru (Postfix) with ESMTP id A38D5C0002; Mon, 16 Sep 2024 19:58:25 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 ksmg01.maxima.ru A38D5C0002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxima.ru; s=sl; t=1726505905; bh=+wLeg7mpilRmYdVCD7x49nLso215F1FrvY0wUpgGC2w=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=iXJJbw/7jSkSGRVZ3/qTTDLl10AYibVFvJ/OnhknH9pcN28QZYVm2wBbCSvg8/ZVm U3nAGl0X9P7HSPlwvqMkIxR8g8uFtv97vWK259UrYx0/t44yFjGzNJBiWd4oRAvHcN DgQAzVg7RoGf7ecYWsg9OTTKIstpuFNBS9pA+OMh9YR1aaBJ3zt2Y6kbqlwGPOPjA5 eGr6uMLvSe/gHVybFLk9Q+esqNKbhx4yDl7EC3D4bFKaG1SeF6+w8aLF1dYBQpBp1w d8rv/oBXjqrCRg98rP4vGaPVfOe75dzFh4u0pKoCu8xhDHSeEg4shvYGS5RkvGoRzO SqaavYE/vgPpA== Received: from ksmg01.maxima.ru (unknown [81.200.124.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.maxima.ru", Issuer "GlobalSign GCC R3 DV TLS CA 2020" (verified OK)) by ksmg01.maxima.ru (Postfix) with ESMTPS; Mon, 16 Sep 2024 19:58:25 +0300 (MSK) Received: from localhost.maximatelecom.ru (10.0.247.12) by mmail-p-exch01.mt.ru (81.200.124.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1544.4; Mon, 16 Sep 2024 19:58:24 +0300 From: Vitaliy Shevtsov To: , Greg Kroah-Hartman CC: Vitaliy Shevtsov , Mustafa Ismail , Shiraz Saleem , Jason Gunthorpe , Leon Romanovsky , , , Subject: [PATCH] RDMA/irdma: fix error message in irdma_modify_qp_roce() Date: Mon, 16 Sep 2024 21:58:05 +0500 Message-ID: <20240916165817.14691-1-v.shevtsov@maxima.ru> X-Mailer: git-send-email 2.46.1 Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: mt-exch-01.mt.ru (91.220.120.210) To mmail-p-exch01.mt.ru (81.200.124.61) X-KSMG-Rule-ID: 7 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 187775 [Sep 16 2024] X-KSMG-AntiSpam-Version: 6.1.1.5 X-KSMG-AntiSpam-Envelope-From: v.shevtsov@maxima.ru X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dmarc=none header.from=maxima.ru;spf=none smtp.mailfrom=maxima.ru;dkim=none X-KSMG-AntiSpam-Info: LuaCore: 34 0.3.34 8a1fac695d5606478feba790382a59668a4f0039, {rep_avail}, {Tracking_from_domain_doesnt_match_to}, 81.200.124.61:7.1.2;maxima.ru:7.1.1;ksmg01.maxima.ru:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1, FromAlignment: s, ApMailHostAddress: 81.200.124.61, {DNS response errors} X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/09/16 11:48:00 #26596414 X-KSMG-AntiVirus-Status: Clean, skipped Use a correct field max_dest_rd_atomic instead of max_rd_atomic for the error output. Found by Linux Verification Center (linuxtesting.org) with Svace. Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs") Signed-off-by: Vitaliy Shevtsov --- drivers/infiniband/hw/irdma/verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c index 76c5f461faca..baa3dff6faab 100644 --- a/drivers/infiniband/hw/irdma/verbs.c +++ b/drivers/infiniband/hw/irdma/verbs.c @@ -1324,7 +1324,7 @@ int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr, if (attr->max_dest_rd_atomic > dev->hw_attrs.max_hw_ird) { ibdev_err(&iwdev->ibdev, "rd_atomic = %d, above max_hw_ird=%d\n", - attr->max_rd_atomic, + attr->max_dest_rd_atomic, dev->hw_attrs.max_hw_ird); return -EINVAL; }