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 1CDAC1BD92 for ; Wed, 4 Apr 2018 11:51:42 +0200 (CEST) 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 8DBFC406F8B0; Wed, 4 Apr 2018 09:51:41 +0000 (UTC) Received: from [10.36.112.30] (ovpn-112-30.ams2.redhat.com [10.36.112.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D0D171DB27; Wed, 4 Apr 2018 09:51:39 +0000 (UTC) To: zhiyong.yang@intel.com, dev@dpdk.org Cc: tiwei.bie@intel.com References: <20180330083150.44990-1-zhiyong.yang@intel.com> From: Maxime Coquelin Message-ID: <7878852a-0963-6e13-e434-2f4b5aff16ed@redhat.com> Date: Wed, 4 Apr 2018 11:51:38 +0200 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: <20180330083150.44990-1-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]); Wed, 04 Apr 2018 09:51:41 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 04 Apr 2018 09:51:41 +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] net/virtio-user: fix port_id type 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: Wed, 04 Apr 2018 09:51:42 -0000 On 03/30/2018 10:31 AM, zhiyong.yang@intel.com wrote: > virtio-user port_id range should be increased from 8 bits to 16 bits. > > Fixes: f8244c6399d9 ("ethdev: increase port id range") > Signed-off-by: Zhiyong Yang > --- > drivers/net/virtio/virtio_user/virtio_user_dev.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.h b/drivers/net/virtio/virtio_user/virtio_user_dev.h > index 64467b4f9..5f8755771 100644 > --- a/drivers/net/virtio/virtio_user/virtio_user_dev.h > +++ b/drivers/net/virtio/virtio_user/virtio_user_dev.h > @@ -31,7 +31,7 @@ struct virtio_user_dev { > */ > uint64_t device_features; /* supported features by device */ > uint8_t status; > - uint8_t port_id; > + uint16_t port_id; > uint8_t mac_addr[ETHER_ADDR_LEN]; > char path[PATH_MAX]; > struct vring vrings[VIRTIO_MAX_VIRTQUEUES]; > Applied to dpdk-next-virtio/master. Thanks! Maxime