Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp327232ybl; Tue, 7 Jan 2020 06:50:32 -0800 (PST) X-Google-Smtp-Source: APXvYqzukOmYjMB6RH/APHQpmtt6BRM72iEPXiuV09rQNRAx9bvHh+F65FmlgrGiiJuwv+yedHEW X-Received: by 2002:a05:6830:1ec9:: with SMTP id c9mr123891otj.214.1578408632793; Tue, 07 Jan 2020 06:50:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578408632; cv=none; d=google.com; s=arc-20160816; b=OogDf92gXo6D3cF62L6XimvfhyaRPcp0Komavu5PXWX8uzqU5TMscLtYXcKckaI+Wv O4SemnWkaJLbsPIU7KP8kFRh9DGniHmrNtxGzrgQYDiEJ7p1BTUXuD25a0bzZXVGRJYE mM7VXV8wOb1kxUNoMN4GfxLlaibj7pSB26QzJP2ewNjK6Jpw1n/Bl5PkG+aEbvEVuRLb hBZauhzugCE1Vn475tDrZ/52Go63QUyNF9EVz1ofC2EiNeMEP8oXMiUFV8Q+q/dgreO+ SddDt+ZSifsuL9plqdHFu45DCXhKx6KIy22qt3fqt7V3IjsXIU60UcUiYawV9rKNQRUo r93w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xURPOfyF2UK2ImfN0jV4a8KRwy9Nblqyu9sgwhGxs5s=; b=h6lJVzz93x9XZSGRi2uO6g/k8wgJTbD0Mm46J9S+3o9pDZm6CMMsNs8hztCvvYqIbz tf0+SEQ4mGg7aL+ndNekd7z3rpGw0gWFSBvGMd3JbKDcfFvbhDY4zFdKyjWOM4N+MWjm bA4X/hCuotbS1yFIjECuuJ68tTJj1Db01AWAIZZipNCtF2jZJ7VyaANwLm98T99pIrix lT34QX4eAXPuB5gc0T0ISnkQYeXPUXXVDtQlhuvamVAZ/Zqkzt9z954hpOPrtMBN7YAn Co7MCPuNpcRdAXHLc5+86dI+NHTm3oNjyf8on/pSC34a8p/GD9jyVu7kEMyRhm//nvwj ZLQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=Jvncn3ti; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k131si2360oia.64.2020.01.07.06.50.19; Tue, 07 Jan 2020 06:50:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=Jvncn3ti; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728356AbgAGOtJ (ORCPT + 99 others); Tue, 7 Jan 2020 09:49:09 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:45945 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727944AbgAGOtI (ORCPT ); Tue, 7 Jan 2020 09:49:08 -0500 Received: by mail-io1-f68.google.com with SMTP id i11so52796402ioi.12 for ; Tue, 07 Jan 2020 06:49:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.ionos.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xURPOfyF2UK2ImfN0jV4a8KRwy9Nblqyu9sgwhGxs5s=; b=Jvncn3tijiI+u+3cvBj5W7Gb8ZHassVRprsVHpn6hdwsYUoJIf0J0zpAeyjjlzCKeH nY+P3BP7Dw5q/F2TclcXczu+dhVPWcEesVllGg3V5LCZB1c/N5KqP2tOmpf9j7VMdQpK KngmC4wGP2sX/E4BgHtDXa4zfoHX1IAC4kUp07/Odh23+CKkbfvPlLgEj7v/4Gl+BrTZ 2Vz+p8Oh5sXHSdNTbR4adTEz/1Zk5t8Lz9bx9c9jDMpuMPCAV2bhUfsgs8ABaF4ERObH H+0nTbLsW1JugC37ccnnPMklDcH6g0yRp2vwGwKe0YuxHWinMCKYlxDscq+FsSIayYy1 eLxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xURPOfyF2UK2ImfN0jV4a8KRwy9Nblqyu9sgwhGxs5s=; b=M2Mf7YueNyv9tENcMjuj36Ga2PLTW2b4sb2g6MQWjgmjta09qbJ/bR8iF5FVb/OOHQ FFHgX0ByKgFc9KesXj1AFLLkPWoUMhABD48BQVkTrjk41ZzHs7By30DRpfTyxlIaE+7C 8NcrT6OQwilYBrpSo6TfP9WJ8kQCIqoAQX7e+UKjx4uqpSqjmGEsP3FVoIEhvoQGN5h6 u6UorcnRBfJ2NZneDqXp8/f4IQikFATMtEDOZkhCHOU8I8Vao2G1rfaZG9kf/8USz8pP 6eZTJyOTcm1Gbl2qupzlsRKdM4z3xsDV0WF3dCjms2g0YHF3maX7iP9gEQNaxo5qfRpm hwfg== X-Gm-Message-State: APjAAAVfFyTaZebmjXAVF0qJrRmU7yduGWw3plgGNR+IFql/HUtRPwak jdyThzURAH8TFLnc0cbhJjPo3ngPaNsLo41HbzcDpg== X-Received: by 2002:a6b:6e02:: with SMTP id d2mr75006830ioh.22.1578408548041; Tue, 07 Jan 2020 06:49:08 -0800 (PST) MIME-Version: 1.0 References: <20191230102942.18395-1-jinpuwang@gmail.com> <20191230102942.18395-15-jinpuwang@gmail.com> <1ad8b279-1a45-1d70-39c7-acd42f28abca@acm.org> In-Reply-To: <1ad8b279-1a45-1d70-39c7-acd42f28abca@acm.org> From: Jinpu Wang Date: Tue, 7 Jan 2020 15:48:57 +0100 Message-ID: Subject: Re: [PATCH v6 14/25] rtrs: a bit of documentation To: Bart Van Assche Cc: Jack Wang , linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, Jens Axboe , Christoph Hellwig , Sagi Grimberg , Leon Romanovsky , Doug Ledford , Danil Kipnis , rpenyaev@suse.de, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 31, 2019 at 12:19 AM Bart Van Assche wrote: > > On 2019-12-30 02:29, Jack Wang wrote: > > diff --git a/drivers/infiniband/ulp/rtrs/README b/drivers/infiniband/ulp/rtrs/README > > Other kernel driver documentation exists under the Documentation/ > directory. Should this README file perhaps be moved to a subdirectory of > the Documentation/ directory? I did check most of the drivers are in the drivers directory eg: find ./ -name README ./fs/reiserfs/README ./fs/qnx4/README ./fs/qnx6/README ./fs/cramfs/README ./Documentation/ABI/README ./Documentation/virt/kvm/devices/README ./README ./tools/usb/usbip/README ./tools/virtio/ringtest/README ./tools/virtio/virtio-trace/README ./tools/power/pm-graph/README ./tools/power/cpupower/README ./tools/memory-model/README ./tools/memory-model/scripts/README ./tools/memory-model/litmus-tests/README ./tools/testing/vsock/README ./tools/testing/ktest/examples/README ./tools/testing/selftests/ftrace/README ./tools/testing/selftests/arm64/signal/README ./tools/testing/selftests/arm64/README ./tools/testing/selftests/android/ion/README ./tools/testing/selftests/zram/README ./tools/testing/selftests/livepatch/README ./tools/testing/selftests/net/forwarding/README ./tools/testing/selftests/futex/README ./tools/testing/selftests/tc-testing/README ./tools/thermal/tmon/README ./tools/build/tests/ex/empty2/README ./tools/perf/tests/attr/README ./tools/perf/pmu-events/README ./tools/perf/scripts/perl/Perf-Trace-Util/README ./tools/io_uring/README ./net/decnet/README ./scripts/ksymoops/README ./scripts/selinux/README ./arch/powerpc/boot/README ./arch/m68k/q40/README ./arch/m68k/ifpsp060/README ./arch/m68k/fpsp040/README ./arch/parisc/math-emu/README ./arch/x86/math-emu/README ./drivers/bcma/README ./drivers/char/mwave/README ./drivers/staging/nvec/README ./drivers/staging/wlan-ng/README ./drivers/staging/axis-fifo/README ./drivers/staging/fbtft/README ./drivers/staging/fsl-dpaa2/ethsw/README ./drivers/staging/goldfish/README ./drivers/staging/gs_fpgaboot/README ./drivers/staging/comedi/drivers/ni_routing/README ./drivers/net/wireless/marvell/mwifiex/README ./drivers/net/wireless/marvell/libertas/README > > > +**************************** > > +InfiniBand Transport (RTRS) > > +**************************** > > The abbreviation does not match the full title. Do you agree that this > is confusing? > > > +RTRS is used by the RNBD (Infiniband Network Block Device) modules. > > Is RNBD an RDMA or an InfiniBand network block device? will fix. > > > + > > +================== > > +Transport protocol > > +================== > > + > > +Overview > > +-------- > > +An established connection between a client and a server is called rtrs > > +session. A session is associated with a set of memory chunks reserved on the > > +server side for a given client for rdma transfer. A session > > +consists of multiple paths, each representing a separate physical link > > +between client and server. Those are used for load balancing and failover. > > +Each path consists of as many connections (QPs) as there are cpus on > > +the client. > > + > > +When processing an incoming rdma write or read request rtrs client uses memory > > A quote from > https://linuxplumbersconf.org/event/4/contributions/367/attachments/331/555/LPC_2019_RMDA_MC_IBNBD_IBTRS_Upstreaming.pdf: > "Only RDMA writes with immediate". Has the wire protocol perhaps been > changed such that both RDMA reads and writes are used? I haven't found > any references to RDMA reads in the "IO path" section in this file. Did > I perhaps overlook something? > > Thanks, > > Bart. We do not use RDMA_READ, only RDMA_WRITE/RDMA_WRITE_WITH_IMM/SEND_WITH_IMM SEND_WITH_IMM was used only when always_invalidate=Y. Will extend the document. Thanks Bart.