From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v2] net/vhost: Initialise vid to -1 Date: Fri, 4 May 2018 15:09:43 +0200 Message-ID: <1d73dcc0-49e8-b530-87ec-eaa4fdbf52da@redhat.com> References: <1525353423-22300-1-git-send-email-ciara.loftus@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Ciara Loftus , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id BB18E1E35 for ; Fri, 4 May 2018 15:09:45 +0200 (CEST) In-Reply-To: <1525353423-22300-1-git-send-email-ciara.loftus@intel.com> Content-Language: en-US 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 05/03/2018 03:17 PM, Ciara Loftus wrote: > rte_eth_vhost_get_vid_from_port_id returns a value of 0 if called before > the first call to the new_device callback. A vid value >=0 suggests the > device is active which is not the case in this instance. Initialise vid > to a negative value to prevent this. > > Signed-off-by: Ciara Loftus > Fixes: ee584e9710b9 vhost: add driver on top of the library > Cc: stable@dpdk.org > --- Reviewed-by: Maxime Coquelin Thanks, Maxime