From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id E8864DE0 for ; Tue, 27 Feb 2018 18:53:15 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7365E40FB647; Tue, 27 Feb 2018 17:53:15 +0000 (UTC) Received: from [10.36.112.12] (unknown [10.36.112.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E1A8176C5; Tue, 27 Feb 2018 17:53:13 +0000 (UTC) To: Zhiyong Yang , dev@dpdk.org, yliu@fridaylinux.org, jianfeng.tan@intel.com, tiwei.bie@intel.com, zhihong.wang@intel.com Cc: dong1.wang@intel.com References: <20180214145330.4679-1-zhiyong.yang@intel.com> <20180214145330.4679-3-zhiyong.yang@intel.com> From: Maxime Coquelin Message-ID: <83bdfcbb-f290-f1be-c8a0-4025d9f0cbee@redhat.com> Date: Tue, 27 Feb 2018 18:53:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180214145330.4679-3-zhiyong.yang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Tue, 27 Feb 2018 17:53:15 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Tue, 27 Feb 2018 17:53:15 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:'' Subject: Re: [dpdk-dev] [PATCH 2/4] net/virtio-user: add data members to support server mode 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: , X-List-Received-Date: Tue, 27 Feb 2018 17:53:16 -0000 On 02/14/2018 03:53 PM, Zhiyong Yang wrote: > Add data members so as to support server mode. > > Signed-off-by: Zhiyong Yang > --- > drivers/net/virtio/virtio_user/virtio_user_dev.h | 8 ++++++++ > 1 file changed, 8 insertions(+) This patch can be squashed in patch 3. > diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.h b/drivers/net/virtio/virtio_user/virtio_user_dev.h > index 64467b4f9..e640a3438 100644 > --- a/drivers/net/virtio/virtio_user/virtio_user_dev.h > +++ b/drivers/net/virtio/virtio_user/virtio_user_dev.h > @@ -6,13 +6,21 @@ > #define _VIRTIO_USER_DEV_H > > #include > +#include > #include "../virtio_pci.h" > #include "../virtio_ring.h" > #include "vhost.h" > +#include "fd_man.h" > > struct virtio_user_dev { > /* for vhost_user backend */ > int vhostfd; > + int listenfd; /* listening fd */ > + bool connected; /* connection status */ > + > + /* support for server/clinet mode */ > + bool is_server; > + struct fdset fdset; > > /* for vhost_kernel backend */ > char *ifname; >