From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (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 4319D257423 for ; Sun, 29 Mar 2026 04:56:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774760197; cv=none; b=hk4O3Dz49UroqYyJvG30WoMKD0yzFr7j8OeI2rpIzCBMWvjPQklmCzJg6YbQ1meHzV096uxWITseLjeqcovZE71Cs2BLKm60Pzb98DaxwUgmphmGZmVIxyfImuO9MO+aOwkViVzyGFSk9QF05e/r4++/dO8RjijiABfqIEiqcCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774760197; c=relaxed/simple; bh=oU/a3RCot96VV4uM6XU9A8NLYqLpK7UszhxF4L5pzgw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hAgI+0az6vCDaF1afsEVqpmrAq54Q2Erz19KEnEBLP2SxwU36EA0lNm/9WMD9PeBdcunJXUwmyzzaI1fmf9uBbo4hMv6b0ci/4OLbrXOcP2Wix3hMzKpF0r8mnopfnnQdt7cKCHzcGGib4wwxNI2SAlX9YWvCu62tbul9vLu8a8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=CQDMjPmF; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="CQDMjPmF" Message-ID: <3cb474cf-4610-4dc6-b87f-83a9d26122ed@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1774760184; 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: in-reply-to:in-reply-to:references:references; bh=Y7pKeZZ5u0do+GeuidQwFc8oBGmigXH9HGGSIgG0Y2A=; b=CQDMjPmFf7AWGI5+3/SdBdCYmYiix6yFp32b00Zz9H40/58g2kaxz5Adrkft73p6J6KQwq /W4bWA7Q7RP5zZWOWnarNw9O1ldlYRAs4ULOdzBK6xpm9eWmxyWETUaG3ZgFU52wRZNBcK 6voq9dXqyx8Y0htZ118kdiKPYohnM1w= Date: Sat, 28 Mar 2026 21:56:19 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v2 4/4] RDMA/rxe: use rxe_counter_get To: zhenwei pi , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, "yanjun.zhu@linux.dev" Cc: zyjzyj2000@gmail.com, jgg@ziepe.ca, leon@kernel.org References: <20260329025552.122946-1-zhenwei.pi@linux.dev> <20260329025552.122946-5-zhenwei.pi@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zhu Yanjun In-Reply-To: <20260329025552.122946-5-zhenwei.pi@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 在 2026/3/28 19:55, zhenwei pi 写道: > There is *rxe_counter_get* helper in RXE, use it instead of raw > atomic64_read. This commit can be merged with the commit "[PATCH v2 3/4] RDMA/rxe: support perf mgmt GET method" Zhu Yanjun > > Signed-off-by: zhenwei pi > --- > drivers/infiniband/sw/rxe/rxe_hw_counters.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/infiniband/sw/rxe/rxe_hw_counters.c b/drivers/infiniband/sw/rxe/rxe_hw_counters.c > index 17edaa9a9b9b..a612e96f7a88 100644 > --- a/drivers/infiniband/sw/rxe/rxe_hw_counters.c > +++ b/drivers/infiniband/sw/rxe/rxe_hw_counters.c > @@ -37,7 +37,7 @@ int rxe_ib_get_hw_stats(struct ib_device *ibdev, > return -EINVAL; > > for (cnt = 0; cnt < ARRAY_SIZE(rxe_counter_descs); cnt++) > - stats->value[cnt] = atomic64_read(&dev->stats_counters[cnt]); > + stats->value[cnt] = rxe_counter_get(dev, cnt); > > return ARRAY_SIZE(rxe_counter_descs); > }