Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3092583iob; Mon, 16 May 2022 12:55:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytKhQ8oFyXKPVWPK5E8CiRflI2c5czrL0jyHIy6Bnp5uWU4Oa19yj82afAEs6eOn8tz3Iy X-Received: by 2002:a17:906:58cf:b0:6f4:4fe8:6092 with SMTP id e15-20020a17090658cf00b006f44fe86092mr16474384ejs.160.1652730920093; Mon, 16 May 2022 12:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652730920; cv=none; d=google.com; s=arc-20160816; b=GL12Y6eVWOHyalTRHK4A9sBQmDd2jbYeNxAGKpTWBYblaERMUHGy0LQkm8ju+RaPiu NZJWH2osANuDpwUv95fxrqPg4T3Zlmyt1GwBUlVKIR/yalYz9x8qEeN7doVA69haw4xm WzSoE6PpxB49AENnqUkjTyzViKj485RIeA2LSq/Na42SXEye38dZ/d1R8pv361l6Uwaq XkpR9zGHO5EgYlZjb9SbkH2dViLogQARetl1pBiD3Y+kBVsKeGuiH+MtB0kpnGtws+7t YsY2k7rKj2TpIYrvNnVEHogjTWoVTK06LH4Z34bSAX1EdnWsMR0AHQm0j+o6uZg1XFKj Zpjg== 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=w8HiyH3/KPEkT1VeawGcPNHXcdLR+uxU74cbNVvMoB34d9leZ6MP9gTS+PyKR/eC2u xF9FnZT/E743O8FSYz2YtbMC2xGeqcfRu023z7qq5yG06A9328pqlPPkcCQWZP4Mowzs RjRRAB/x8WFegRhV6MMK/4lg9cJN3UsaAOjYsLE2EZ4n1cS8IKsSICyw2X3tUkKkxqvX VpisdXH73mB4GzOtBFif2xSY4VAlfn+PvRUmivRYRNXBrjgl7kSmThZLVwQuX1aqICNn QxLOsWBs+6XogQvZ59WGKFCy1jZ0Da+yOfrvWcog9j28ORj8/PZc70m31DFnbQ316pcP lBmA== 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 r3-20020a170906704300b006e47fac6cfcsi187545ejj.774.2022.05.16.12.54.52; Mon, 16 May 2022 12:55:20 -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 S239944AbiEPFvw (ORCPT + 99 others); Mon, 16 May 2022 01:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239918AbiEPFvv (ORCPT ); Mon, 16 May 2022 01:51:51 -0400 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59D7715714; Sun, 15 May 2022 22:51:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;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=10;SR=0;TI=SMTPD_---0VDEQJf7_1652680304; Received: from localhost.localdomain(mailfrom:guangguan.wang@linux.alibaba.com fp:SMTPD_---0VDEQJf7_1652680304) by smtp.aliyun-inc.com(127.0.0.1); Mon, 16 May 2022 13:51:46 +0800 From: Guangguan Wang To: kgraul@linux.ibm.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, leon@kernel.org, tonylu@linux.alibaba.com Cc: linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v3 0/2] net/smc: send and write inline optimization for smc Date: Mon, 16 May 2022 13:51:35 +0800 Message-Id: <20220516055137.51873-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)