From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 82B48A05D3 for ; Tue, 21 May 2019 10:29:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6C2C810BD; Tue, 21 May 2019 10:29:45 +0200 (CEST) Received: from mail-oi1-f195.google.com (mail-oi1-f195.google.com [209.85.167.195]) by dpdk.org (Postfix) with ESMTP id DCEADA69 for ; Tue, 21 May 2019 10:29:43 +0200 (CEST) Received: by mail-oi1-f195.google.com with SMTP id y124so7811829oiy.3 for ; Tue, 21 May 2019 01:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WhYidqE9siHrOtibgNAdMXsZAqAL8A/GyLtgIrIU7uY=; b=Mcx1GXHXyjz8PDM/uqRN2mPfzcSptN3zCPJ+UlHkRhQd6OAqmkd06dgwHMxNIxoNt4 45KdQD6P1clA2uVtC6vvjkZb/SpnoS1xPvqgVAi1Uknukm6PL9KHvKluihiqwA+ACesz uY1BY9N+m4C99YAV9HWK1r5Oe0X+RBsY1Wejt3n/0PF47GDX9cT7EfqaGFTumBWYAeCh kXbPDYoSR37W5wh8MRarSQrwWCfspTiEu0pviCwF+Fmi4it4n8TPsRzLLPtd0X2x6gyL ysTBVleomzTGJcYjfYRe1FhtS7qLpArCSN3uu5yxUMVx3k9KeNhp9FFtigo1l+jARPNZ ALZw== 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=WhYidqE9siHrOtibgNAdMXsZAqAL8A/GyLtgIrIU7uY=; b=GHR291sLcFofgMV6pA79KNzlMeCx0+rab7RELWnlk7tWnskoKkXEKfr58BrUPpPWeN 3lEscZncgWOr0fpm2F1DkRN+vmDHJFJKERTT/FCG2VTeDHF+H2rkhRbWvl8NkS15gTwg p/G0Yjd8gIuIGrNQSgZFZrfFUIaRb6Oa33g0+4sVllnuHATZ66fXXJI7PuzVMuUfuUT9 QedWN83ubRhQUWUhwFHu0hS8hkEQg80+41JAsHanAiGhmNHUMA4r/dMsSlPAdJxIA+Xo u2Fhz5jWVGrgYF8Qxcx8DufhG5chhuaCIxYjNmk/nTNI3ue5u8Lo87ftmW5MYM2oILmG UqBw== X-Gm-Message-State: APjAAAXA5q1UtQeszxvQEwrbnUXtnvzktK8ARbGzhjjfq0At0yXIVAgc OsjizHvvTJIJ3azRYvr8/6OqMf/aaj4YUYtGyd0= X-Google-Smtp-Source: APXvYqwre4cvS0E8iiUyKloTtFn9VbdFfW1hBhi+LLrFBl9vPjc2vCI6J8ax8KkzEMNssPe9fwE07UuoE3NKeRQ7FCo= X-Received: by 2002:aca:c1c6:: with SMTP id r189mr2721989oif.162.1558427383258; Tue, 21 May 2019 01:29:43 -0700 (PDT) MIME-Version: 1.0 References: <1556271621-8594-1-git-send-email-chuckylinchuckylin@gmail.com> <1557046942-1151-1-git-send-email-chuckylinchuckylin@gmail.com> <8ba5c1ff-08ea-6cb2-c201-b972e79da4fc@redhat.com> <20190520021310.GA11790@___> In-Reply-To: <20190520021310.GA11790@___> From: lin li Date: Tue, 21 May 2019 16:29:31 +0800 Message-ID: To: Tiwei Bie Cc: dev@dpdk.org, dariusz.stojaczyk@intel.com, changpeng.liu@intel.com, Li Lin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v4] vhost: support inflight share memory protocol feature X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Tiwei Bie =E4=BA=8E2019=E5=B9=B45=E6=9C=8820=E6=97=A5= =E5=91=A8=E4=B8=80 =E4=B8=8A=E5=8D=8810:14=E5=86=99=E9=81=93=EF=BC=9A > > On Fri, May 17, 2019 at 05:47:07PM +0200, Maxime Coquelin wrote: > > On 5/5/19 11:02 AM, Li Lin wrote: > [...] > > > /** > > > * Device structure contains all configuration information relating > > > * to the device. > > > @@ -303,6 +314,7 @@ struct virtio_net { > > > uint32_t nr_vring; > > > int dequeue_zero_copy; > > > struct vhost_virtqueue *virtqueue[VHOST_MAX_QUEUE_PAIRS * 2]; > > > + struct inflight_mem_info inflight_info; > > > #define IF_NAME_SZ (PATH_MAX > IFNAMSIZ ? PATH_MAX : IFNAMSIZ) > > > char ifname[IF_NAME_SZ]; > > > uint64_t log_size; > > > > Do you have some code example using these new APIs? > > It would help for reviewing the patch. > > +1 I just submitted SPDK-related patches, and you will see how to use new API.