From patchwork Tue Jan 25 08:50:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Zhijian X-Patchwork-Id: 12723435 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE8ECC433F5 for ; Tue, 25 Jan 2022 08:55:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1452668AbiAYIwS (ORCPT ); Tue, 25 Jan 2022 03:52:18 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:36081 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1379440AbiAYItA (ORCPT ); Tue, 25 Jan 2022 03:49:00 -0500 IronPort-Data: A9a23:PsRfMqjD06gg8s80yNMz3INNX161bxEKZh0ujC45NGQNrF6WrkUPxmYbXD3SPP6PNDSnLdhyOYjloUpQvZDWytVqTANuqnw8FHgiRejtX4rAdhiqV8+xwmwvdGo+toNGLICowPkcFhcwnT/wdOixxZVA/fvQHOCkUbSZYnkZqTJME0/NtzoywobVvaY42bBVMyvV0T/Di5W31G2NglaYAUpIg063ky6Didyp0N8uUvPSUtgQ1LPWvyF94JvyvshdJVOgKmVfNrbSq+ouUNiEEm3lExcFUrtJk57wdAsEX7zTIROTzHFRXsBOgDAb/mprjPl9b6FaNC+7iB3Q9zx14NFMp5yxSwYgOIXCheYcTwJFVSp5OMWq/ZeeeyDv6p3IkBaun3zEhq8G4FsNFZcA9+9tGmZI9eQVAD8IZxGHwemxxdqTWPhulNUhdpGzZKsQv3hhyXfSCvNOaZTCSqPF+tJexDo2iehOAP/BastfYj1qBDzMahsJOBEICZY6ne6tnVH+dSFVrBSeoq9fy3TUyQVqwv7iKt3Qc9CYRsR9n0CEq2aA9GP8ajkeOduZ4TmI6HShgqnIhyyTcIsSHae/8PpChkOSym0aThYRUDOTpPO9jUW+c9RBKkAV82wlqq1a3FCsS/HhVhmgrW/CtRkZM/JUEusn+ESOx7DS7gKxGGcJVHhCZcYguctwQiYlvneNntX0FXl1vLicYWyS+63Srj6oPyURa2gYakcsTwQKy8virZk+yBnGJuuPuobdYsbdQGm2mm7V6nNlweh7sCLC7I3jlXivvt5mjsShotYJ2zjq IronPort-HdrOrdr: A9a23:ECNPFa9lIFVl9OBpiVpuk+DkI+orL9Y04lQ7vn2ZKCYlFvBw8vrCoB1173HJYUkqMk3I9ergBEDiewK4yXcW2/hzAV7KZmCP11dAR7sSj7cKrQeBJwTOssZZ1YpFN5N1EcDMCzFB5vrS0U2VFMkBzbC8nJyVuQ== X-IronPort-AV: E=Sophos;i="5.88,314,1635177600"; d="scan'208";a="120839373" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 25 Jan 2022 16:44:32 +0800 Received: from G08CNEXMBPEKD04.g08.fujitsu.local (unknown [10.167.33.201]) by cn.fujitsu.com (Postfix) with ESMTP id 8F9FE4D15A5C; Tue, 25 Jan 2022 16:44:30 +0800 (CST) Received: from G08CNEXCHPEKD09.g08.fujitsu.local (10.167.33.85) by G08CNEXMBPEKD04.g08.fujitsu.local (10.167.33.201) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 25 Jan 2022 16:44:30 +0800 Received: from localhost.localdomain (10.167.225.141) by G08CNEXCHPEKD09.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Tue, 25 Jan 2022 16:44:27 +0800 From: Li Zhijian To: , , , , , , CC: , , , , , , , Li Zhijian Subject: [RFC PATCH v2 5/9] RDMA/rxe: Set BTH's SE to zero for FLUSH packet Date: Tue, 25 Jan 2022 16:50:37 +0800 Message-ID: <20220125085041.49175-6-lizhijian@cn.fujitsu.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220125085041.49175-1-lizhijian@cn.fujitsu.com> References: <20220125085041.49175-1-lizhijian@cn.fujitsu.com> MIME-Version: 1.0 X-yoursite-MailScanner-ID: 8F9FE4D15A5C.AF2B6 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lizhijian@fujitsu.com Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org The SPEC says: oA19-6: FLUSH BTH header field solicited event (SE) indication shall be set to zero. Signed-off-by: Li Zhijian --- V2: said -> says --- drivers/infiniband/sw/rxe/rxe_req.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index 708138117136..363a33b905bf 100644 --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -401,7 +401,9 @@ static struct sk_buff *init_req_packet(struct rxe_qp *qp, (pkt->mask & RXE_END_MASK) && ((pkt->mask & (RXE_SEND_MASK)) || (pkt->mask & (RXE_WRITE_MASK | RXE_IMMDT_MASK)) == - (RXE_WRITE_MASK | RXE_IMMDT_MASK)); + (RXE_WRITE_MASK | RXE_IMMDT_MASK)) && + /* oA19-6: always set SE to zero */ + !(pkt->mask & RXE_FETH_MASK); qp_num = (pkt->mask & RXE_DETH_MASK) ? ibwr->wr.ud.remote_qpn : qp->attr.dest_qp_num;