From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1E00AA0562; Tue, 4 May 2021 10:28:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 96DC34014D; Tue, 4 May 2021 10:28:50 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 88B9F40147 for ; Tue, 4 May 2021 10:28:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620116927; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TWACsL+hQrugCx76aTquVfoEjU0Fn5dTslyqS0YmlkM=; b=a8wMH5Ho4Njs9L/o/RjPbJPAg9WcUWnnhYOxQBsbuyFzY0m6JhDFfFxSZ2PwOydNkmwfwF tuqM529lXBZbBAUCFnMUMkBOOGI8QFXPlRSoAG41tH6TYpS2NLHhYLkDx7Ya7WYP6EFBIx X0Gu+TyzuhBHOeDZnyJcGAKpzrihc1Y= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-53-xKUQ9oR9OAeP_jUc1k8Mdw-1; Tue, 04 May 2021 04:28:46 -0400 X-MC-Unique: xKUQ9oR9OAeP_jUc1k8Mdw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 528761898297; Tue, 4 May 2021 08:28:44 +0000 (UTC) Received: from [10.36.110.22] (unknown [10.36.110.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BB7155D9D5; Tue, 4 May 2021 08:28:42 +0000 (UTC) To: Cheng Jiang , chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, yvonnex.yang@intel.com, yinan.wang@intel.com, yong.liu@intel.com References: <20210317085426.10119-1-Cheng1.jiang@intel.com> <20210427080335.20246-1-Cheng1.jiang@intel.com> From: Maxime Coquelin Message-ID: Date: Tue, 4 May 2021 10:28:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210427080335.20246-1-Cheng1.jiang@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v9 0/4] add support for packed ring in async vhost X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" On 4/27/21 10:03 AM, Cheng Jiang wrote: > For now async vhost data path only supports split ring structure. In > order to make async vhost compatible with virtio 1.1 spec this patch > set cleans async split ring codes and enables packed ring in async > vhost data path. Batch datapath is also enabled in async vhost > packed ring. > > v9: > * improve some variable initiation > * fix some variable names for consistency > * rebase on the latest code > v8: > * fix some variable names for consistency > * clean codes > v7: > * fix compile issues > * add argument *dev in vhost_free_async_mem() for ring type decision > v6: > * fix some typos in commit log > * improve index usage > * remove shadow_ring_store() > * add store_dma_desc_info_split() store_dma_desc_info_packed() > * remove some checks in vhost_free_async_mem() > * change index calculation since the size isn't necessarily a power of 2 > * move error handling in a dedicated function > * clean codes > v5: > * clean some codes for packed ring datapath > * fix an index error in shadow_ring_store() > v4: > * change the patch structure > * clean code for async split ring > * reuse some code from split ring > * change the error handler for DMA-copy packet > * add check for malloc > * remove useless code > * add doc update > v3: > * fix error handler for DMA-copy packet > v2: > * fix wrong buffer index in rte_vhost_poll_enqueue_completed() > * add async_buffers_packed memory free in vhost_free_async_mem() > > Cheng Jiang (4): > vhost: abstract and reorganize async split ring code > vhost: add support for packed ring in async vhost > vhost: add batch datapath for async vhost packed ring > doc: add release note for vhost async packed ring > > doc/guides/rel_notes/release_21_05.rst | 4 + > lib/vhost/rte_vhost_async.h | 1 + > lib/vhost/vhost.c | 79 +++- > lib/vhost/vhost.h | 15 +- > lib/vhost/virtio_net.c | 598 +++++++++++++++++++++---- > 5 files changed, 587 insertions(+), 110 deletions(-) > > -- > 2.29.2 > Applied to dpdk-next-virtio/main. Thanks, Maxime