Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1469318iob; Sat, 14 May 2022 09:48:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylHNvq/WrbSYCKR36HGObB3ETDuqyMk0n/ER2K3QkeefypEfCGTBHdcgWPX+1gvqjE96Zm X-Received: by 2002:a05:6402:5108:b0:427:e323:4c67 with SMTP id m8-20020a056402510800b00427e3234c67mr4539731edd.326.1652546933565; Sat, 14 May 2022 09:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652546933; cv=none; d=google.com; s=arc-20160816; b=i1GalciQcd50b/jbrsLaXKPoXZv3ELn+CU2VbTJzcuzqGhSj5rxokaNyzy4H1fKlaT w0lsF7jArO3YhkHWZbz3TS33ddqkTIQSsbnxbHsP5knUtCs6EYDYoIn4je7dZF2dIwX1 P1Jpn1rijHroI3Mzw/Ni0Jm6NghoGBA4MQiLqiVdyK8XtoB52UE8gpuu36pR4CqBsrFw jcAtMZ+my4JkUoVdLk1bM+8J+iUC4ME90gJtuaeoUPxCpXaed9NB1NyHOTQFD7BbArvC 1za3iwtz0N3cW5WMPh50ogBSEBMs1d8LHZQtNc36AdYMB7QZxUPwH4bOd5RrwPrg0K7O zgfA== 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 :message-id:date:subject:cc:to:from; bh=NjBfZ8m1O2yLdmQj4RcCNKcYoJRYTiIVKF2wFuwI5pM=; b=zBdAuXNLs76E9yaFuNrJeECRmKs9iUXYhZp+sUtLiXBRvFfjKAUj6GewK2JK+L2bpO YR/5ZOoubviVU3ejN/cXFuvhc9swQA54CAf4+bBCrtPYZRwsPWrWsvCZ6IY/iN8rJL/y mZmGrv+PHFZdHhyt8zQeIXtem/uNYTQYPoAzNxl3iMD2R4Get5bs0p87bAOzKtFfFVYM ajbdz2DSSrvGsXptdZd7jBvCbvh9yP/G720ECbET+IMbd6L4Y0LlL2R38wJO10HUFr2A M9XDfJ/t6msD/SqDVn0IoliqLyLzbbUN+IGD7KDQBknTEjuzbiKMKS5k6tj88gZrWm5J 9hAQ== 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=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht16-20020a170907609000b006e8cb75fd59si5633508ejc.723.2022.05.14.09.48.27; Sat, 14 May 2022 09:48:53 -0700 (PDT) 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232108AbiENK17 (ORCPT + 99 others); Sat, 14 May 2022 06:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231826AbiENK16 (ORCPT ); Sat, 14 May 2022 06:27:58 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0117A39144; Sat, 14 May 2022 03:27:55 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=guangguan.wang@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VD6nQiA_1652524072; Received: from localhost.localdomain(mailfrom:guangguan.wang@linux.alibaba.com fp:SMTPD_---0VD6nQiA_1652524072) by smtp.aliyun-inc.com(127.0.0.1); Sat, 14 May 2022 18:27:53 +0800 From: Guangguan Wang To: kgraul@linux.ibm.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, leon@kernel.org Cc: linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 0/2] net/smc: send and write inline optimization for smc Date: Sat, 14 May 2022 18:27:37 +0800 Message-Id: <20220514102739.41252-1-guangguan.wang@linux.alibaba.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Send cdc msgs and write data inline if qp has sufficent inline space, helps latency reducing. In my test environment, which are 2 VMs running on the same physical host and whose NICs(ConnectX-4Lx) are working on SR-IOV mode, qperf shows 0.4us-1.3us improvement in latency. Test command: server: smc_run taskset -c 1 qperf client: smc_run taskset -c 1 qperf -oo \ msg_size:1:2K:*2 -t 30 -vu tcp_lat The results shown below: msgsize before after 1B 11.9 us 10.6 us (-1.3 us) 2B 11.7 us 10.7 us (-1.0 us) 4B 11.7 us 10.7 us (-1.0 us) 8B 11.6 us 10.6 us (-1.0 us) 16B 11.7 us 10.7 us (-1.0 us) 32B 11.7 us 10.6 us (-1.1 us) 64B 11.7 us 11.2 us (-0.5 us) 128B 11.6 us 11.2 us (-0.4 us) 256B 11.8 us 11.2 us (-0.6 us) 512B 11.8 us 11.3 us (-0.5 us) 1KB 11.9 us 11.5 us (-0.4 us) 2KB 12.1 us 11.5 us (-0.6 us) Guangguan Wang (2): net/smc: send cdc msg inline if qp has sufficient inline space net/smc: rdma write inline if qp has sufficient inline space net/smc/smc_ib.c | 1 + net/smc/smc_tx.c | 17 ++++++++++++----- net/smc/smc_wr.c | 5 ++++- 3 files changed, 17 insertions(+), 6 deletions(-) -- 2.24.3 (Apple Git-128)