From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Boldin Subject: Re: [PATCH v5 3/4] vhost: using EVENTFD_COPY2 Date: Wed, 28 Oct 2015 20:35:29 +0200 Message-ID: References: <1429184910-30186-2-git-send-email-pboldin@mirantis.com> <1440787880-7079-3-git-send-email-pboldin@mirantis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" To: "Xie, Huawei" Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id F25628D9E for ; Wed, 28 Oct 2015 19:35:29 +0100 (CET) Received: by wikq8 with SMTP id q8so263896564wik.1 for ; Wed, 28 Oct 2015 11:35:29 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Huawei, Thomas, Please find an updated patchset in the appropriate mail thread. With best regards, Pavel On Mon, Oct 26, 2015 at 3:45 AM, Xie, Huawei wrote: > On 10/21/2015 8:16 PM, Pavel Boldin wrote: > > Xie, > > > > Please find my comments intermixed below. > > > > On Tue, Oct 20, 2015 at 12:52 PM, Xie, Huawei > > wrote: > > > > Thanks Pavel for this work. > > This is what we think is the better implementation for eventfd > > proxy, in > > our last review. > > Could you add an additional patch to remove the old implementation? > > > > I'm not really sure if we should do it -- imagine upgrading from one > > version of DPDK to another. > > Given the current implementation there is a backward compatibility. > I couldn't image the case any one would run old dpdk app with the new > dpdk module. However I am ok you leave it here, :), we could remove this > in next release. > Could you finish rebasing the patch before end of next week, otherwise > it will lose chance of being merged. > > > > > > > > Again, please run checkpatch.pl against > > your patch. > > > > Oops. Thanks for pointing out. > > > > > > On 8/29/2015 2:51 AM, Pavel Boldin wrote: > > > > [...] > > > + > > > +int > > > +eventfd_init(void) > > > +{ > > > + if (eventfd_link > 0) > > 0 could be valid fd. Change it to: > > > > Got it. Thanks. > > > > > > if (eventfd_link >= 0) > > Change elsewhere if i miss it. > > > +int > > > +eventfd_free(void) > > > +{ > > > + if (eventfd_link > 0) > > same as above: > > if (eventfd_link >= 0) > > > > [...] > > > > > > -- > > Sincerely, > > Pavel > >