From patchwork Wed Nov 16 08:19:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhijian Li (Fujitsu)" X-Patchwork-Id: 20798 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp23125wru; Wed, 16 Nov 2022 00:28:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qMiR0gifH+RkUZ2wS7JwFZpRttJScBCvg/Hrc4KVVQYkOFBABxmZPIy1SB8dfqzaKCOS2 X-Received: by 2002:a17:90b:804:b0:213:de70:9eb5 with SMTP id bk4-20020a17090b080400b00213de709eb5mr2562657pjb.145.1668587307160; Wed, 16 Nov 2022 00:28:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668587307; cv=none; d=google.com; s=arc-20160816; b=RiW/MrbRMcq9Pmqg5uTuCO5QhDdT+zFNjkugnq1pWQRPa8XeqVgHpjP3sg5rOgSVPq Qnr2hFkib7a3wMQq21QI1OMpGxm2HnBFoFfNEqq1Jzygm4lMsbsghdoCKt8AhhV5/97k 8V3IgM8Oq701pShNS2OUZUByFG7hzui5v/YDMmpGONJLTWMQDkY0dqAsPeq3zndjQd8g +3j8YeX0pVq1cFcRqYG9Tbo5AkPe9QitqoH4PtSvlVH+3E27yMHd1vgCgJ9Ntb36aY1X CdQK952W/5UspPayB6gV3VRqdugRs/3hKc3yyRxnCrb9OLg2dyZgCKAbmpaukqCkGlxY x6Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wq3SAD8NL8epK17ol/ttC8ratot0AjCg1WHTjgmpMjU=; b=0zqf/3EgyMcljIEiqvarCi7qPqnH4XtEALVbXgPNJaWIK+Jd2BuAGXGICbVmXlz8be w3Vp8PydmJq+etglybVqapU5ztg9E1NQDLnNDKeVTFeVQccHLr8Vl6RHDFyu66gLGE5j FmUP7Uv0VJPSv+UE6ry1BJEdgPZpoftr5NGO5QY+JWsBH5diYdQTBskUzUNQiXzI7dUg vGAyo73Mm4KypP3VpsM5nXcUOh3p+8e/pi5G5dWdLN3mYrN2r8Hrxqm5Uos4OX/f9paJ qFMRyzcQ6ka11AVimWIsks9zjUxQ3REKYkqCTKkjkUjgSMGVaBmMIsZW+aaAlyCPegRi dMNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m137-20020a633f8f000000b0047693f2ef8esi6840156pga.470.2022.11.16.00.28.13; Wed, 16 Nov 2022 00:28:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238803AbiKPIVn (ORCPT + 99 others); Wed, 16 Nov 2022 03:21:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232785AbiKPIUa (ORCPT ); Wed, 16 Nov 2022 03:20:30 -0500 Received: from esa11.hc1455-7.c3s2.iphmx.com (esa11.hc1455-7.c3s2.iphmx.com [207.54.90.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E34F4D2CE; Wed, 16 Nov 2022 00:20:26 -0800 (PST) X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="75610043" X-IronPort-AV: E=Sophos;i="5.96,167,1665414000"; d="scan'208";a="75610043" Received: from unknown (HELO yto-r3.gw.nic.fujitsu.com) ([218.44.52.219]) by esa11.hc1455-7.c3s2.iphmx.com with ESMTP; 16 Nov 2022 17:20:22 +0900 Received: from yto-m3.gw.nic.fujitsu.com (yto-nat-yto-m3.gw.nic.fujitsu.com [192.168.83.66]) by yto-r3.gw.nic.fujitsu.com (Postfix) with ESMTP id AA9A5E445A; Wed, 16 Nov 2022 17:20:20 +0900 (JST) Received: from kws-ab2.gw.nic.fujitsu.com (kws-ab2.gw.nic.fujitsu.com [192.51.206.12]) by yto-m3.gw.nic.fujitsu.com (Postfix) with ESMTP id F23A5D968B; Wed, 16 Nov 2022 17:20:19 +0900 (JST) Received: from FNSTPC.g08.fujitsu.local (unknown [10.167.226.45]) by kws-ab2.gw.nic.fujitsu.com (Postfix) with ESMTP id C6F772340D44; Wed, 16 Nov 2022 17:20:18 +0900 (JST) From: Li Zhijian To: zyjzyj2000@gmail.com, jgg@ziepe.ca, leon@kernel.org, Bob Pearson , linux-rdma@vger.kernel.org Cc: Mark Bloch , Tom Talpey , tomasz.gromadzki@intel.com, Dan Williams , Xiao Yang , y-goto@fujitsu.com, linux-kernel@vger.kernel.org, Li Zhijian Subject: [for-next PATCH v6 03/10] RDMA/rxe: Extend rxe user ABI to support flush Date: Wed, 16 Nov 2022 16:19:44 +0800 Message-Id: <20221116081951.32750-4-lizhijian@fujitsu.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116081951.32750-1-lizhijian@fujitsu.com> References: <20221116081951.32750-1-lizhijian@fujitsu.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSS-9.1.0.1408-9.0.0.1002-27266.006 X-TM-AS-User-Approved-Sender: Yes X-TMASE-Version: IMSS-9.1.0.1408-9.0.1002-27266.006 X-TMASE-Result: 10--3.211900-10.000000 X-TMASE-MatchedRID: y6wt06uo3+c3i8FXueJ7nioiRKlBVkYI4Tk+Ydnj9RtFms6YEs23D8s0 A8Och09BxTsa1zsKwGAzoUNAtFjsci/7QU2czuUNA9lly13c/gGrHFhHKqXuS+0NA4pWf9v6o8W MkQWv6iUCY+lsYFiWG+TCMddcL/gjxlblqLlYqXJg243VUQ5gotJhlo0wNlMFQMD5e+hgqWRXTh L/dK+xeI3YczUbgj3oWZT/4ma4ZGBjLx2sm6TA+4iqokNjcw2/yF2YDjfiz5gRZbRsQk5MBUB1Q Pq9bxnWZkAxAwjIrrMHz/H0kiLyEqGAtHMDjkk9 X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749640604055469208?= X-GMAIL-MSGID: =?utf-8?q?1749640604055469208?= This commit extends the rxe user ABI to support the flush operation defined in IBA A19.4.1. These changes are backwards compatible with the existing rxe user ABI. The user API request a flush by filling this structure. Reviewed-by: Zhu Yanjun Signed-off-by: Li Zhijian --- V5: new patch split scheme, suggested by Bob --- include/uapi/rdma/rdma_user_rxe.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/uapi/rdma/rdma_user_rxe.h b/include/uapi/rdma/rdma_user_rxe.h index 73f679dfd2df..e2b93df94590 100644 --- a/include/uapi/rdma/rdma_user_rxe.h +++ b/include/uapi/rdma/rdma_user_rxe.h @@ -82,6 +82,13 @@ struct rxe_send_wr { __u32 invalidate_rkey; } ex; union { + struct { + __aligned_u64 remote_addr; + __u32 length; + __u32 rkey; + __u8 type; + __u8 level; + } flush; struct { __aligned_u64 remote_addr; __u32 rkey;