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 40457A052A; Wed, 27 Jan 2021 13:00:54 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AD62140D05; Wed, 27 Jan 2021 13:00:51 +0100 (CET) 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 9C271140D04 for ; Wed, 27 Jan 2021 13:00:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611748848; 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=MQSquuO6KFMuGmU7N8IaneR2otvIEd9x2vNA6xFVy3I=; b=H5wJQNassp9Atk1ecQ2yEflQ5x7NaSXV5H3OUWCrRJBVnEvqdfHx6r9iJqQ2Xxq/X9AaIh V4YcH4RC5qV+BGPGDbrZ+gqFDnkgxJBe4kxAImcBmVg4PNmyabhcl3Cz325ihq0Xqfk+ac SpAJpBEbxPaj17mSP3pNLI85XSfiU28= 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-173-ICNL_ExHO-SyyjALk_prvQ-1; Wed, 27 Jan 2021 07:00:45 -0500 X-MC-Unique: ICNL_ExHO-SyyjALk_prvQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A7F4E91223; Wed, 27 Jan 2021 12:00:43 +0000 (UTC) Received: from [10.36.110.31] (unknown [10.36.110.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 28BF960C05; Wed, 27 Jan 2021 12:00:41 +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 References: <20201218113327.70528-1-Cheng1.jiang@intel.com> <20210112043857.19826-1-Cheng1.jiang@intel.com> From: Maxime Coquelin Message-ID: Date: Wed, 27 Jan 2021 13:00:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210112043857.19826-1-Cheng1.jiang@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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/2] examples/vhost: sample code refactor 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 1/12/21 5:38 AM, Cheng Jiang wrote: > Refactor the vhost sample code. Add ioat ring space count and check > in ioat callback, optimize vhost data path for batch enqueue, replace > rte_atomicNN_xxx to __atomic_XXX and refactor vhost async data path. > --- > v9: > * migrated atomic_XXX to __atomic_XXX and updated git log > > v8: > * rebased codes > > v7: > * fixed rte_ioat_completed_ops() fail handler issue > > v6: > * adjusted the value of MAX_ENQUEUED_SIZE in ioat.h > > v5: > * added vhost enqueue buffer free when destroy a vhost device > * added rte_ioat_completed_ops() fail handler > * changed the behavior of drain_vhost_table() function > * changed some variable names > * changed some variable definition > * added rte_zmalloc() fail handler > * added some comments > * fixed some typos > > v4: > * improved code structure > * improved vhost enqueue buffer memory allocation > * cleaned some codes > > v3: > * added some variable initiation > * cleaned some codes > > v2: > * optimized patch structure > * optimized git log > * replaced rte_atomicNN_xxx to atomic_XXX > > Cheng Jiang (2): > examples/vhost: add ioat ring space count and check > examples/vhost: refactor vhost data path > > examples/vhost/ioat.c | 24 +++-- > examples/vhost/ioat.h | 2 +- > examples/vhost/main.c | 238 ++++++++++++++++++++++++++++++------------ > examples/vhost/main.h | 6 +- > 4 files changed, 191 insertions(+), 79 deletions(-) > > -- > 2.29.2 > Applied to dpdk-next-virtio/main. Thanks, Maxime